Custom Shaders
Use ShaderMaterial for dissolve and edge effects with custom shaders that run on both WebGL and WebGPU backends.
Use ShaderMaterial for dissolve and edge effects with custom shaders that run on both WebGL and WebGPU backends.
Render planar reflections for mirrors and water by projecting the scene onto a plane with a reflective shader pass.
Shade a globe with Earth textures, materials, and shaders to present a stylized planetary body in real time.
Build a rainbow ribbon trail by updating mesh vertices and colors with the Mesh API for dynamic GPU-driven geometry.
Port a Shadertoy-style plasma effect into a material shader chunk so animated GLSL drives surface color in engine lighting.
Distort sprite UVs in a custom GLSL shader to create wavy or bulging effects without rebuilding mesh geometry each frame.