All examples · Shaders and post

3D effects

What this example shows

Custom fragment materials on meshes. A 'mesh3d' effect is a surface shader, fn effect(surface, ctx), with a FragContext exposing uv, the world normal and worldPos, and the Gouraud light term separately.

That is enough for a dissolve, a fresnel hologram, a pulsing force field and hue-by-angle iridescence, all animating from mu.time.

Starting