All examples · Shaders and post

Lava sea

What this example shows

A Wave Race style rolling ocean, as lava. One material uses both mesh hooks: a vertex sum of sines swells a subdivided plane, and an effect reads ctx.worldPos.y (the height after displacement) to glow molten on the crests and cool to dark basalt in the troughs. All from mu.time, no useUpdate.

Starting