How noniv/abyssal-garden works
Abyssal Garden is a browser-based, procedurally generated underwater world, rendered with WebGPU and accompanied by synthesized audio. The user opens the page, waits for the scene to build, then dives in to swim using keyboard, mouse, or touch controls; they can also change detail settings and toggle sound. The main generation and rendering path is visible in excerpts, while several presentation and feature details are documented only in the README, so those links cite that documentation.
Main entry points: main.js Scene Renderer · world.js World Layout · template.html Scene Page · audio.js Soundscape
Components 13
Browser Experience
- Scene Page
source/template.html - Camera Controls
source/src/main.js - Viewpoints
source/src/main.js
Scene Generation
- World Layout
source/src/world.js - Terrain Mesh
source/src/world.js - World Features
source/src/world.js - Geometry Helpers
source/src/math.js
Rendering and Quality
- Scene Renderer
source/src/main.js - WGSL Shaders
source/src/shaders.js - Detail Quality
source/src/quality.js
Procedural Audio
- Soundscape
source/src/audio.js
Other components
- Diver
- WebGPU
Connections 14
- Diver → Scene Page: opens
README.md - Scene Page → Scene Renderer: hosts
README.md - Diver → Camera Controls: steers
README.md - Camera Controls → Scene Renderer: updates camera
source/src/main.js - Viewpoints → Scene Renderer: sets camera
README.md - Scene Renderer → World Layout: builds via makeWorld
source/src/main.js - World Layout → Terrain Mesh: builds
source/src/world.js - World Layout → World Features: generates
source/src/world.js - World Layout → Geometry Helpers: uses mesh helpers
source/src/world.js - Scene Renderer → WebGPU: requests device
source/src/main.js - Scene Renderer → WGSL Shaders: uses
README.md - Detail Quality → Scene Renderer: sets detail
README.md - Diver → Soundscape: enables sound
README.md - Camera Controls → Soundscape: starts sound
source/src/main.js