(6.0.0 Shader) scale - JujuAdams/ScribbleOldDocs GitHub Wiki

vec2 scale(vec2 position, vec2 centre, float scale)

Returns: The position after scaling

Datatype Name Purpose
vec2 position Position to scale
vec2 centre Centre of scaling, analogous to the "origin" in GameMaker's sprites
float scale Scaling factor