Skip to main content
Annual billing

ThreeJS.net annual plans cost about 50% less than 12 monthly payments

Save

Neon Ridge

An endless contour-line terrain flyover

About this scene

A ridge field at dusk drawn as contour light: a 320×320 grid is displaced by ridged fractal noise in the vertex shader, contour lines are anti-aliased with fwidth in the fragment shader, and the ground scrolls toward the camera forever. A low sun with slats sits on the horizon; the pointer steers the glide.

How it is built

  1. 01

    Endless without streaming

    The mesh never moves. The noise is sampled at (x, z − travel), so the landscape flows toward the camera indefinitely with a fixed amount of geometry.

  2. 02

    Lines that stay sharp

    Contours are drawn where height crosses multiples of a step; dividing by fwidth keeps them one pixel wide at every distance, which avoids shimmering.

  3. 03

    Composition first

    A valley mask flattens the centre so the eye travels along the path to the sun, with mountains rising on both sides.

Questions

Can I use it behind a landing page?
Yes; it is built as a background with no UI. Lower the bloom strength if your headline sits over the sun.
Does it respect reduced motion?
Yes. With prefers-reduced-motion the flight slows to a fifth of its speed, and the loop pauses when the tab is hidden.

More examples