Parameters
Configuration options for the shader.
Support
Usage
Basic color shader
Animated gradient
Interactive shader with mouse
Custom uniforms
Optimized animation
Sized shader
Built-in Uniforms
The following uniforms are automatically provided:u_resolution(vec2): The size of the shader canvas in pixelsu_time(float): Elapsed time in seconds (iftimeEnabledis true)u_mouse(vec2): Mouse/touch position in pixels (ifmouseEnabledis true)
Notes
- Shaders run on the GPU and provide high-performance visual effects
- Fragment shaders are executed for every pixel in the component
- Use
updateIntervalto control animation frame rate and optimize performance - The coordinate system has (0,0) at the bottom-left corner
