(6.0.0 Shader) wave - JujuAdams/ScribbleOldDocs GitHub Wiki
vec2 wave(vec2 position, float characterIndex, float amplitude, float frequency, float speed)
Returns: The position after the application of a wave effect
Datatype | Name | Purpose |
---|---|---|
vec2 |
position |
Position to transform |
float |
characterIndex |
Index for this character |
float |
amplitude |
Maximum displacement of the wave effect, in pixels |
float |
frequency |
How many peaks occur per character. High values create more peaks |
float |
speed |
Speed of the wave motion. High values animate faster |