Filter Reference
Filter Reference
Implicitly defined shader uniforms
Shaders are compiled code, and parameters are bound to them at run time by the graphics application that use them.
Shadertastic, for all it's filters, will bind and update at each frame following parameters:
// Time since the shader is running. Goes from 0 to infinity for filter effects
uniform float time;
// Texture of the source (filters only)
uniform texture2d image;
// Intermediate texture where the previous step will be rendered
uniform texture2d tex_interm; // (for multisteps effects)
// Width of a pixel in the UV space
uniform float upixel;
// Height of a pixel in the UV space
uniform float vpixel;
// Seed for random functions
uniform float rand_seed;
// index of current step (for multisteps effects)
uniform int current_step;
// number of steps (for multisteps effects)
uniform int nb_steps;
main.hlsl).