A vanilla JavaScript and Vite starter for a reusable Three.js procedural terrain engine.
- Procedural terrain mesh with seeded fractal noise
- Modular terrain generator suitable for future flight, driving, and FPS game modes
- Clean vanilla JS setup with Vite
- Live GUI controls for terrain, fog, and lighting tuning
- Chunked terrain tiles with render distance, wireframe mode, and runtime performance HUD
npm install
npm run devsrc/main.jsboots the appsrc/app.jswires the scene, controls, GUI, and terrain systemsrc/core/contains renderer, camera, scene, lighting, and state setupsrc/systems/createTerrainSystem.jsowns terrain mesh and grid updatessrc/ui/createTerrainGui.jsdefines the live settings panelsrc/terrain/ProceduralTerrain.jsbuilds the reusable terrain meshsrc/terrain/noise.jsprovides deterministic height noise
The current demo is intentionally small. It is a base for adding chunk streaming, biome rules, vehicle physics, flight camera modes, and world persistence.