three-gpu-pathtracer/webgpu
Classes
BlurredEnvMapGeneratorProduces a PMREM prefiltered, optionally downsampled equirectangular copy of an environment map.FSRUpscalerUpscales a path traced image to the drawing buffer size with FSR.OIDNDenoiserRuns Open Image Denoise over a path traced image.WebGPUPathTracerProgressive path tracer running on WebGPU.
Constants
RANDOM_BLUE_DITHERThe same Sobol sequence for every pixel, offset by a blue noise dither so early frames read as smooth grain rather than clumped noise.RANDOM_PCGUncorrelated pseudo random samples.RANDOM_SOBOLSobol low discrepancy samples, scrambled per pixel.TRANSMISSIVE_BACKGROUND_ENVIRONMENTSample the environment map, so glass shows what is behind it.TRANSMISSIVE_BACKGROUND_OVERLAYSet the opacity from the transmitted light intensity, tinted by the environment lighting.TRANSMISSIVE_BACKGROUND_TRANSPARENTAttenuate the background by the transmitted light, so glass renders against transparency.