A path tracing renderer and helpers for three.js, built on three-mesh-bvh. It targets physically based GPU rendering with WebGPU compute shaders.
Overview
three-gpu-pathtracer adds path tracing rendering to three.js projects. It layers on three-mesh-bvh and uses WebGPU compute shaders to accelerate physically based image synthesis on the GPU.
Examples cover glTF scenes, primitive geometry, material tests, interior lighting, depth of field, and HDR environments. Supported rendering features include area and spot lights, denoising and upscaling, animation rendering utilities, and workflows that use blurred environment maps when multiple importance sampling is disabled.
Material support is limited to MeshStandardMaterial and MeshPhysicalMaterial, with emissive materials available under documented constraints. Spot, directional, and point lights require multiple importance sampling. The WebGPU path tracer is not yet stable and depends on three-mesh-bvh APIs that may change between releases.
Developers integrate a basic renderer API, consult WebGPU documentation, and can run local demos after installing Node dependencies. A companion web demo lets users drop GLTF, GLB, DAE, or MPD files for path-traced previews.
Key features
- WebGPU compute-shader path tracing
- Built on three-mesh-bvh
- Physically based materials
- Area and spot light support
- Denoising and upscaling
- Depth of field and HDR demos
- glTF-oriented example setups
- Animation rendering tools
Use cases
- Physically based three.js previews
- Interior and material test scenes
- glTF model path-traced viewing
- GPU ray-style rendering research demos
- Comparing fidelity test scenes