PathTracerParameters
Defined in: radiance/src/renderers/PathTracer.ts:26
Properties
Section titled “Properties”bounces?
Section titled “bounces?”
optionalbounces?:number
Defined in: radiance/src/renderers/PathTracer.ts:37
The bounces a path may take after the camera ray. Default 8.
canvas?
Section titled “canvas?”
optionalcanvas?:HTMLCanvasElement
Defined in: radiance/src/renderers/PathTracer.ts:28
The canvas to draw on. Without one, readPixels() and readRadiance() still work.
device?
Section titled “device?”
optionaldevice?:object
Defined in: radiance/src/renderers/PathTracer.ts:30
The host’s GPUDevice. Omitted, the runtime requests one.
exposure?
Section titled “exposure?”
optionalexposure?:number
Defined in: radiance/src/renderers/PathTracer.ts:41
The exposure of the displayed image, in stops. Default 0.
maxSamplesPerFrame?
Section titled “maxSamplesPerFrame?”
optionalmaxSamplesPerFrame?:number
Defined in: radiance/src/renderers/PathTracer.ts:48
The most samples a frame may take when targetFrameTime adapts it. Default 64.
rouletteFrom?
Section titled “rouletteFrom?”
optionalrouletteFrom?:number
Defined in: radiance/src/renderers/PathTracer.ts:39
The bounce from which Russian roulette may end a path. Default 3.
samplesPerFrame?
Section titled “samplesPerFrame?”
optionalsamplesPerFrame?:number
Defined in: radiance/src/renderers/PathTracer.ts:35
Samples each render adds to every pixel. Default 1. The first frame takes one, to measure
the speed the tiles are sized by.
optionalseed?:number
Defined in: radiance/src/renderers/PathTracer.ts:32
One seed, one image. Default 0.
targetFrameTime?
Section titled “targetFrameTime?”
optionaltargetFrameTime?:number
Defined in: radiance/src/renderers/PathTracer.ts:46
Keep a full-resolution frame near this many milliseconds by changing samplesPerFrame
after each one, up to maxSamplesPerFrame. Omitted, samplesPerFrame stays as set.
watchdogBudget?
Section titled “watchdogBudget?”
optionalwatchdogBudget?:number
Defined in: radiance/src/renderers/PathTracer.ts:54
The milliseconds one dispatch may take: the frame is traced in tiles that stay under it, by the last frame’s speed, so the GPU’s watchdog (about two seconds on Windows) never stops one. Default 50.