Custom Shaders - Custom Fog Shader
Demonstrates the parameterised reuse of a custom shader via a shared node core.
The custom shader in this example injects functions into the SceneJS-generated fragment shader to tweak the outgoing fragment colour as a function of fragment view-space depth.
Three teapots are wrapped in a shader node that shares the shader by instancing its node core, along with a shaderParams node to set parameters for the shader's exposed uniform parameters.