Demo (using Webpack) of glslCanvas, a tool to test GLSL shaders on HTML canvas. See the Book of Shaders for a list of tutorials on GLSL.
u_time
: Time in seconds since shader started.u_resolution
: Billboard size.u_mouse
: Mouse position inside billboard (in px).
- Coordinates of current fragment rel. to window.
- Origin: lower-left corner.
- Lower-left pixel coords: (0.5, 0.5)
with:
-
$x$ : input variable -
$edge$ : threshold
with:
-
$x$ : input variable -
$t_0$ and$t_1$ : thresholds - gives a sigmoid-shaped function
with:
-
$x$ and$y$ : input variables -
$a$ : weight