Interface: TemporalAntiAliasingOptions
Options for Temporal Anti-aliasing (TAA)
Most TAA parameters are extremely costly to change, as they will trigger the TAA post-process
shaders to be recompiled. These options should be changed or set during initialization.
filterWidth
, feedback
and jitterPattern
, however, can be changed at any time.
feedback
of 0.1 effectively accumulates a maximum of 19 samples in steady state.
see "A Survey of Temporal Antialiasing Techniques" by Lei Yang and all for more information.
Properties
boxClipping?
optional
boxClipping:"ACCURATE"
|"CLAMP"
|"NONE"
Clipping algorithm:
- NONE: no rejections (use for debugging)
- CLAMP: clamping
- ACCURATE: accurate box clipping
Default
'ACCURATE'
Defined in
enabled
enabled:
boolean
Enable or disable TAA
Default
false
Defined in
feedback?
optional
feedback:number
History feedback, between 0 (maximum temporal AA) and 1 (no temporal AA).
Default
0.12
Defined in
filterHistory?
optional
filterHistory:boolean
Whether to filter the history buffer
Default
true
Defined in
filterInput?
optional
filterInput:boolean
Whether to apply the reconstruction filter to the input
Default
true
Defined in
filterWidth?
optional
filterWidth:number
Reconstruction filter width typically between 0.2 (sharper, aliased) and 1.5 (smoother)
Default
1.0
Defined in
historyReprojection?
optional
historyReprojection:boolean
Whether to apply history reprojection (debug option)
Default
true
Defined in
jitterPattern?
optional
jitterPattern:"RGSS_X4"
|"UNIFORM_HELIX_X4"
|"HALTON_23_X8"
|"HALTON_23_X16"
|"HALTON_23_X32"
Jitter Pattern:
- RGSS_X4: 4-samples, rotated grid sampling
- UNIFORM_HELIX_X4: 4-samples, uniform grid in helix sequence
- HALTON_23_X8: 8-samples of halton 2,3
- HALTON_23_X16: 16-samples of halton 2,3
- HALTON_23_X32: 32-samples of halton 2,3
Default
'HALTON_23_X16'
Defined in
lodBias?
optional
lodBias:number
Texturing lod bias (typically -1 or -2)
Default
-1.0
Defined in
preventFlickering?
optional
preventFlickering:boolean
Adjust the feedback dynamically to reduce flickering
Default
false
Defined in
sharpness?
optional
sharpness:number
Post-TAA sharpen, especially useful when upscaling is true.
Default
0.0
Defined in
upscaling?
optional
upscaling:boolean
Enable or disable upscaling
Default
false
Defined in
useYCoCg?
optional
useYCoCg:boolean
Whether to use the YcoCg color-space for history rejection
Default
false
Defined in
varianceGamma?
optional
varianceGamma:number
High values increases ghosting artefact, lower values increases jittering, range [0.75, 1.25]
Default
1.0