07
Moon Terrain
A Three.js landscape with simplex-noise terrain, a glowing moon, distance fog, and twenty lights that follow the ground.
3D terrainmoonlightsimplex noise
Live
Installation
Add it to your project
$
Installs 1 files into components/shaders. Requires three, simplex-noise, @types/three. The CLI installs these dependencies.
Usage
Mount it behind your content
app/hero.tsx
The shader fills its nearest positioned ancestor. Give the parent relative isolate and the shader -z-10 to put it behind everything else.
API reference