Wrapper for the WebGPUPathTracer class that renders the fiber scene and camera. The settable
properties of the path tracer instance, such as maxBounces, maxSamples or renderScale, can
be set as props, and its events registered with onComplete and onProgress. Camera changes
restart the render automatically. Scene changes are not tracked: call the update functions on
the instance from usePathTracer after adding, moving, or restyling objects. The scene is
rasterized while the kernels compile, and with dynamicLowRes set to false the render fades in
over the rasterized scene.
<WebGPUPathTracer
enabled: boolean = true
renderPriority: number = 1
children?: ReactNode
/>On this page
Props
enabled: boolean = true
If false, the scene is rasterized normally instead.
renderPriority: number = 1
Priority of the frame callback used to render.
children?: ReactNode
Children rendered with access to the path tracer context.