An interactive procedural planet generator that runs in the browser. Terrain, climate and biomes are generated from seeded Simplex noise, baked to textures on the GPU with GLSL shaders, and rendered with Three.js. A lil-gui panel controls all parameters.
- TypeScript and Vite (with
vite-plugin-glslfor importing.glslshaders) - Three.js — WebGL rendering,
OrbitControlsfor camera - simplex-noise — seeded noise
- lil-gui — parameter panel
- Procedural terrain: continents (multi-octave noise), high-frequency detail, sea level and shore width
- Climate model: temperature and moisture driven by latitude, elevation (lapse-rate cooling, orographic drying) and noise, with adjustable offsets
- Biome colouring, polar ice caps, and optional fancy ocean shading
- Map views: biome, topographic, precipitation and temperature
- Animated cloud layer with zonal wind bands
- Optional globe grid overlay, sun shadow, starfield background and FPS counter
- Custom height map: load an image to replace the noise-generated terrain
- Prefabs: export/import the current parameters as a JSON file
- Orbit camera (optionally following the planet's spin); press
Spaceto pause/resume rotation
- Install dependencies:
npm install- Start dev server:
npm run dev-
Open the URL printed by Vite (usually http://localhost:5173)
-
Build for production (
npm run build) and preview it locally (npm run preview).
- Tweak parameters in the GUI (Shape, Noise, Climate, Seed, Appearance, Clouds, Prefabs, Height Map);
- To produce a different planet, change the
seedin the Seed folder or press "🎲 Randomise seed".

