Highvale: a voxel survival game on three.js WebGPU, playable in the browser

Hi all! I’ve been building Highvale, a block-building survival game that runs entirely on three.js’s WebGPURenderer, with every material written in TSL.

:play_button: Play: https://www.playhighvale.com
Desktop, or a phone with WebGPU (Safari on iOS 26, Chrome on Android). No download, no account. Pick Multiplayer on the title screen to join the public world.

The game

  • An endless generated world of 57 biomes, caves with underground lakes and lava, and karst towers 50–200 blocks tall with waterfalls
  • Survival: mining, crafting, farming (each crop has a climate it grows in), fishing, animals
  • A public multiplayer world on Colyseus. Single-player runs the same room code in a Web Worker

The three.js side

  • WebGPU only, three r186, no WebGL fallback
  • Chunks meshed in workers into 2 packed 32-bit words per vertex, drawn with one shared index buffer and texture arrays of up to 512 layers
  • Far view out to 4 km: quadtree tiles of coarse terrain, masked in the vertex shader wherever near chunks already draw, with a detail fade at the seam
  • Reversed depth (depth32float), so 4 km of terrain doesn’t z-fight
  • Smooth lighting and AO per vertex, cascaded sun shadows, aerial haze. A torch in your hand lights the world through a small 3D light texture that’s re-flooded as you move
  • Water and lava flow animated in the shader from a per-face flow code
  • Every block texture (128 px) is painted procedurally at load on worker threads, so no block image files ship
  • Mobs are box rigs skinned in the vertex shader, all sharing one atlas

Happy to answer questions about any of it. Performance reports from your GPU are very welcome (F3 shows the fps).

1 Like