mirror of
https://github.com/hydra-synth/hydra.git
synced 2025-12-14 10:50:00 +01:00
50 lines
906 B
Markdown
50 lines
906 B
Markdown
# Operators
|
|
|
|
Functions for performing operations on sources.
|
|
|
|
- [.add( `texture`, `amount` )](#.add( `texture`, `amount` ))
|
|
- [.blend( `texture`, `amount` )](#.blend( `texture`, `amount` ))
|
|
- [.diff( `texture` )](#.diff( `texture` ))
|
|
- [.layer()](#.layer())
|
|
- [.mult( `texture`, `amount` )](#.mult( `texture`, `amount` ))
|
|
|
|
---
|
|
|
|
### .add( `texture`, `amount` )
|
|
* texture
|
|
* color :: vec4
|
|
* src
|
|
* shape
|
|
* amount :: float (default 0.5)
|
|
|
|
Add textures.
|
|
|
|
### .blend( `texture`, `amount` )
|
|
* texture
|
|
* color :: vec4
|
|
* src
|
|
* shape
|
|
* amount :: float (default 0.5)
|
|
|
|
Blend textures.
|
|
|
|
### .diff( `texture` )
|
|
* texture
|
|
* color :: vec4
|
|
* src
|
|
* shape
|
|
|
|
Return difference of textures.
|
|
|
|
### .layer()
|
|
|
|
Overlay texture based on alpha value.
|
|
|
|
### .mult( `texture`, `amount` )
|
|
* texture
|
|
* color :: vec4
|
|
* src
|
|
* shape
|
|
* amount :: float (default 1.0)
|
|
|
|
Multiply images and blend with the texture by `amount`. |