A Vite and Three.js terrain prototype with cube-sphere tile selection, large-scale third-person exploration, animated character locomotion, terrain physics, water, props, wild grass, and an experimental WebGPU renderer path.
npm install
npm run devThen open the local Vite URL.
npm run buildThe build runs npm run assets:optimize first. Optimized runtime assets live under public/optimized, while bulky source model and PNG texture files are intentionally ignored for public repository hygiene.
The default renderer is WebGL because the richest terrain material still uses custom GLSL. WebGPU can be forced with:
/?renderer=webgpuThe WebGPU path uses Three node materials for terrain and grass. It is playable, but the WebGL terrain shader still has the higher-fidelity texture blending path.
WASD: moveShift: sprintSpace: jumpCtrl: crouchC: crawlX: slide- Mouse drag: third-person camera
- Mouse wheel: camera distance
L: toggle camera follow yaw
Runtime assets are committed in optimized form. If you want to regenerate them, place compatible source files at:
public/models/player1.glbpublic/textures/pbr/*.png
Only publish assets you have the right to redistribute.