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
- 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.
- 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.
- 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.
ThreeJS.net

