Skip to main content

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

src/types/Options.ts:201


enabled

enabled: boolean

Enable or disable TAA

Default

false

Defined in

src/types/Options.ts:186


feedback?

optional feedback: number

History feedback, between 0 (maximum temporal AA) and 1 (no temporal AA).

Default

0.12

Defined in

src/types/Options.ts:171


filterHistory?

optional filterHistory: boolean

Whether to filter the history buffer

Default

true

Defined in

src/types/Options.ts:219


filterInput?

optional filterInput: boolean

Whether to apply the reconstruction filter to the input

Default

true

Defined in

src/types/Options.ts:224


filterWidth?

optional filterWidth: number

Reconstruction filter width typically between 0.2 (sharper, aliased) and 1.5 (smoother)

Default

1.0

Defined in

src/types/Options.ts:166


historyReprojection?

optional historyReprojection: boolean

Whether to apply history reprojection (debug option)

Default

true

Defined in

src/types/Options.ts:244


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

src/types/Options.ts:213


lodBias?

optional lodBias: number

Texturing lod bias (typically -1 or -2)

Default

-1.0

Defined in

src/types/Options.ts:176


preventFlickering?

optional preventFlickering: boolean

Adjust the feedback dynamically to reduce flickering

Default

false

Defined in

src/types/Options.ts:239


sharpness?

optional sharpness: number

Post-TAA sharpen, especially useful when upscaling is true.

Default

0.0

Defined in

src/types/Options.ts:181


upscaling?

optional upscaling: boolean

Enable or disable upscaling

Default

false

Defined in

src/types/Options.ts:191


useYCoCg?

optional useYCoCg: boolean

Whether to use the YcoCg color-space for history rejection

Default

false

Defined in

src/types/Options.ts:229


varianceGamma?

optional varianceGamma: number

High values increases ghosting artefact, lower values increases jittering, range [0.75, 1.25]

Default

1.0

Defined in

src/types/Options.ts:234