mirror of
https://github.com/hydra-synth/hydra.git
synced 2025-12-13 10:19:59 +01:00
1.9 KiB
1.9 KiB
Modulators
Functions for describing modulations of sources.
- modulate
- modulateHue
- modulateKaleid
- modulatePixelate
- modulateRotate
- modulateScale
- modulateScrollX
- modulateScrollY
modulate
.modulate( texture, amount )
texturecolor::vec4, see colorvec4src:: see Sourcesshape:: see Sources
amount:: float (default0.1)
Modulate texture. More about modulation at: https://lumen-app.com/guide/modulation/
modulateHue
.modulateHue( color, amount )
- texture
- color :: vec4
- src
- shape
- amount :: float (default 1.0)
Changes coordinates based on hue of second input. Based on: https://www.shadertoy.com/view/XtcSWM
modulateKaleid
.modulateKaleid( nSides )
- texture
- color :: vec4
- src
- shape
- nSides :: float (default 4.0)
modulatePixelate
.modulatePixelate( multiple, offset )
- texture
- color :: vec4
- src
- shape
- multiple :: float (default 10.0)
- offset :: float (default 3.0)
modulateRotate
.modulateRotate( multiple, offset )
- texture
- color :: vec4
- src
- shape
- multiple :: float (default 1.0)
- offset :: float (default 0.0)
modulateScale
.modulateScale( multiple, offset )
- texture
- color :: vec4
- src
- shape
- multiple :: float (default 1.0)
- offset :: float (default 1.0)
modulateScrollX
.modulateScrollX( multiple, scrollX, speed )
- texture
- color :: vec4
- src
- shape
- scrollX :: float (default 0.5)
- speed :: float (default 0.0)
modulateScrollY
.modulateScrollY( multiple, scrollY, speed )
- texture
- color :: vec4
- src
- shape
- scrollY :: float (default 0.5)
- speed :: float (default 0.0)