126 of 300

Heroes 10Dark in both themes

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.