278 / 627

Raymarched mountains

A mountain range computed for every pixel in every frame, with fog, snow and a low sun. Move the cursor to look around.

WebGL2 fragment shader without libraries, with a 2D fallback

  • One shaderThe terrain is a signed distance field, marched in at most 64 steps for each pixel.
  • AdaptsThe resolution drops when a frame takes longer than 90 ms.
  • FallbackWithout WebGL2 the canvas draws six ridges in 2D. The label in the corner names the engine in use.
Shelf
Heroes and sections
Group
Heroes 10 of 12
Theme
Dark in both themes
Live pointer
6 steps, until you take over