Bakery takes hours. A Toaster takes minutes.
GPU voxelizer + path tracer for Unity 6 URP. Voxelize your scene, trace light bounces, render as volumetric fog — all on the GPU.
Four stages from scene geometry to volumetric fog. All GPU-accelerated.
Renders each object's Unity Meta Pass into a texture. Extracts albedo + emission in UV space. Handles all URP Lit shaders automatically.
Compute shader dispatches per triangle, not per voxel. 13-axis SAT intersection test, barycentric UV sampling, atomic fixed-point accumulation.
Halton-sequence rays per occupied voxel. DDA grid marching, shadow rays to all lights, multi-bounce color bleeding with Wang hash seeding.
Frostbite-style screen-space frustum grid. Beer-Lambert integration, Henyey-Greenstein phase function, temporal reprojection, height fog.
Bakery encodes lighting with 3 textures of L1 Spherical Harmonics. Toaster uses 1 RGBAHalf texture with L0 ambient. 75% less data, 90% less decode math. The tradeoff: isotropic light with no directional response. For volumetric fog, that's exactly what you want.
One GPU thread per triangle, not per voxel. Only touches voxels near geometry. Dramatically faster than the textbook approach.
RWTexture3D doesn't support atomics. Workaround: InterlockedAdd on a RWStructuredBuffer<uint> with fixed-point RGBA packing. Zero race conditions.
All meshes merged into mega-buffers on CPU. Vertices pre-transformed, indices offset-adjusted. One upload, one bind. Eliminates per-object rebinding.
Up to 8 fog volumes via StructuredBuffer. Per-volume density, intensity, and edge falloff. Smooth overlap compositing.
EMA blend with previous ViewProj reprojection. History buffer ping-pong keeps fog stable across frames without ghosting.
Fog density boosts near lights for natural glow. Height fog with sqrt falloff — dense at ground, thin above. All per-volume configurable.
Three custom nodes: ToasterSampleVolume, ToasterSampleLighting, ToasterSampleFog. Drop into any Shader Graph.
Dirty tracking per object. Only re-voxelizes meshes that moved. Serialized Texture3D assets survive domain reloads.
Menu > Toaster > Create Demo Scene && Bake. Generates a corridor with pillars, neon emissives, and all 7 visualizers wired up.
Quality presets. Toaster-themed, obviously.
Seven built-in ways to see what the voxel grid is doing.