the current renderer instance
GLSL code containing a vec4 apply(vec4 color, vec2 uv) function
that receives the sampled pixel color and UV coordinates, and returns the modified color.
You can declare additional uniform variables before the apply() function.
Optionalprecision: stringfloat precision ('lowp', 'mediump' or 'highp')
destroy this shader effect
Set the uniform to the given value
the uniform name
the value to assign to that uniform
A simplified shader class for applying custom fragment effects to renderables. Only requires a fragment
apply()function — the vertex shader, uniforms, and texture sampling boilerplate are handled automatically. In Canvas mode, the shader is silently disabled (all methods become no-ops).Example
Example