All examples · Shaders and post

Shader graph 3D

What this example shows

One graph drives both stages of a model's material: its color becomes fn effect (the light cut into bands, plus a rim) and its position becomes fn vertex (a wave along the normal). compileShader writes both, and the result spreads into createMaterial.

A parameter is moved every frame, straight on the object the renderer reads.

Starting