(6.0.0 Shader) shake - JujuAdams/ScribbleOldDocs GitHub Wiki
vec2 shake(vec2 position, float characterIndex, float magnitude, float speed)
Returns: The position after the application of a shake effect
Datatype | Name | Purpose |
---|---|---|
vec2 |
position |
Position to scale |
float |
characterIndex |
Index for this character |
float |
magnitude |
Maximum displacement for the shake effect, in pixels |
float |
speed |
The period of the shake effect. Higher values cause characters to shake more |