-
Notifications
You must be signed in to change notification settings - Fork 7
Home
Andrei Kashcha edited this page Jan 28, 2018
·
3 revisions
This is all work in progress.
The website supports most of the shadertoy's simple uniforms:
// Current frame number, counted from launch of the program
uniform float iFrame;
// Current time in seconds, passed from the program launch
uniform float iTime;
// Mouse coordinates. `.xy` - current, `.zw` - last clicked.
// Note: To translate coordinates to scene coordinates use
// screen2scene(iMouse.xy) -> vec2 method.
uniform vec4 iMouse;
// screen resolution
uniform vec2 iResolution;