SpawnDev.VoxelEngine
GPU voxel engine: meshing, culling, LOD, physics and VR from one C# codebase.
SpawnDev.VoxelEngine is a voxel engine built on SpawnDev.ILGPU, with GPU-accelerated meshing, culling, LOD, terrain carving, physics, destruction and VR rendering. The block renderer and GPU meshers run the AubsCraft 3D viewer in production; the rest is used by Lost Spawns and may change during the release-candidate cycle. Only prerelease versions are published.
Runs on
WebGPUWebGLWasmCUDAOpenCLCPU
Highlights
- Binary greedy meshing on the GPU.
- GPU-driven culling: frustum, cylindrical fog and Sodium-style graph visibility; adaptive LOD via DelegateSpecialization kernels.
- BlockRenderPipeline for textured, tinted, lit, fogged blocks with a texture atlas, plus ColumnMesher and QuadArena.
- Terrain carving (sphere/box/cylinder), voxel raycast, collision and structural integrity, and GPU explosion damage kernels.
- SDF mesher with Dual Marching Cubes for smooth terrain; heightmap terrain and biome generation.
- VR/WebXR support: StereoRenderer, FoveatedRendering and WebXRHelper (Quest 3S named).
using SpawnDev.SpawnJS;
using SpawnDev.VoxelEngine;
using SpawnDev.VoxelEngine.Carving;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.Services.AddSpawnJSRuntime();
// One-line registration with Lost Spawns defaults (HD realistic, VoxelSize=0.5).
// Use AddVoxelEngineAubsCraft() for blocky Minecraft-style defaults,
// or AddVoxelEngine(cfg => { ... }) to dial in your own values.
builder.Services.AddVoxelEngineLostSpawns();
await builder.Build().SpawnJSRunAsync();Install
dotnet add package SpawnDev.VoxelEngineBuilding on SpawnDev.VoxelEngine?
Private tickets, response targets and a direct line to the engineer who wrote it.