mirror of
https://github.com/anvaka/fieldplay.git
synced 2025-12-08 20:13:59 +00:00
713 B
713 B
List of variables available to shader
On top of standard glsl functions, the following list of variables can be used in velocity shader:
float PI- 3.1415926535897932384626433832795float frame- Current frame number. Increases over time. Resets to 0 if you change shader's codevec4 cursor- Defines position of a cursor in bounding box coordinates.cursor.xy- position where mouse was clicked (or tapped) last time.cursor.zw- current mouse hover position. On mobile phones, where mouse is not available,zwcomponent will be thexyoftouchmoveevent.