Skip to content

PathTracerParameters

Defined in: radiance/src/renderers/PathTracer.ts:26

optional bounces?: number

Defined in: radiance/src/renderers/PathTracer.ts:37

The bounces a path may take after the camera ray. Default 8.


optional canvas?: HTMLCanvasElement

Defined in: radiance/src/renderers/PathTracer.ts:28

The canvas to draw on. Without one, readPixels() and readRadiance() still work.


optional device?: object

Defined in: radiance/src/renderers/PathTracer.ts:30

The host’s GPUDevice. Omitted, the runtime requests one.


optional exposure?: number

Defined in: radiance/src/renderers/PathTracer.ts:41

The exposure of the displayed image, in stops. Default 0.


optional maxSamplesPerFrame?: number

Defined in: radiance/src/renderers/PathTracer.ts:48

The most samples a frame may take when targetFrameTime adapts it. Default 64.


optional rouletteFrom?: number

Defined in: radiance/src/renderers/PathTracer.ts:39

The bounce from which Russian roulette may end a path. Default 3.


optional samplesPerFrame?: 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.


optional seed?: number

Defined in: radiance/src/renderers/PathTracer.ts:32

One seed, one image. Default 0.


optional targetFrameTime?: 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.


optional watchdogBudget?: 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.