Type Alias: PathTracerOptions
PathTracerOptions:
object
Configuration options for the path tracer.
Type declaration
clearColor?
optionalclearColor:Color|false
Color to clear the canvas with. Set to false to disable clearing.
enableDenoise?
optionalenableDenoise:boolean|OIDNConfig|GaussianConfig
Enable denoising pass. Set to true to enable Gaussian denoising, or provide an object with configuration for more detailed configuration or OIDN denoising.
enableFloatTextureFiltering?
optionalenableFloatTextureFiltering:boolean
Enable float texture filtering, mainly used for development.
enableTimestampQuery?
optionalenableTimestampQuery:boolean
Enable timestamp query for performance measurements
environmentLightConfiguration?
optionalenvironmentLightConfiguration:EnvironmentLightConfig
Configuration for the environment light for sun and sky.
maxRayDepth?
optionalmaxRayDepth:number
Maximum number of ray bounces
onSampleStart()?
optionalonSampleStart: (params) =>void
Callback called before a sample is started.
Parameters
• params
• params.cameraPosition: RawCameraSetup["matrixWorldContent"]
Returns
void
onSamplingFinished()?
optionalonSamplingFinished: (result) =>void
Callback for when the path tracer has finished sampling.
Parameters
• result
• result.allRenderTime: number
• result.bvhBuildTime: number
• result.fullRenderLoopTime: number
• result.renderTimes: number[]
Returns
void
samplesPerIteration?
optionalsamplesPerIteration:number
Number of samples per iteration.
signal?
optionalsignal:AbortSignal
Signal to abort the path tracer. May be used at any time.
size?
optionalsize:number|OutputSizeConfiguration
Ouput size of the render. The canvas may use a different size.
targetSamples?
optionaltargetSamples:number
Number of samples per pixel.
viewProjectionConfiguration?
optionalviewProjectionConfiguration:ViewProjectionConfiguration
Configuration for the view and controls.