Custom shader material

A hand-written GLSL vertex/fragment pair via createShaderMaterial: the vertex shader displaces the sphere along its normal with a few overlapping sine waves, the fragment shader turns that displacement plus a fake directional light into color. material.uniforms.time is updated every frame.

← all examples