Skip to main content

Interface: AmbientOcclusionOptions

Options for screen space Ambient Occlusion (SSAO) and Screen Space Cone Tracing (SSCT)

Properties

bentNormals?

optional bentNormals: boolean

Enables bent normals computation from AO, and specular AO.

Default

false

Defined in

src/types/Options.ts:69


bias?

optional bias: number

Self-occlusion bias in meters. Use to avoid self-occlusion. Between 0 and a few mm.

Default

0.0005

Defined in

src/types/Options.ts:21


bilateralThreshold?

optional bilateralThreshold: number

Depth distance that constitutes an edge for filtering.

Default

0.05

Defined in

src/types/Options.ts:39


enabled?

optional enabled: boolean

Enables or disables screen-space ambient occlusion.

Default

false

Defined in

src/types/Options.ts:63


intensity?

optional intensity: number

Strength of the Ambient Occlusion effect.

Default

1.0

Defined in

src/types/Options.ts:33


lowPassFilter?

optional lowPassFilter: QualityLevel

Affects AO smoothness.

Default

'MEDIUM'

Defined in

src/types/Options.ts:51


minHorizonAngleRad?

optional minHorizonAngleRad: number

Minimum angle in radians to consider.

Default

0.0

Defined in

src/types/Options.ts:75


power?

optional power: number

Controls ambient occlusion's contrast. Must be positive.

Default

1.0

Defined in

src/types/Options.ts:15


quality?

optional quality: QualityLevel

Affects the number of samples used for AO.

Default

'LOW'

Defined in

src/types/Options.ts:45


radius?

optional radius: number

Ambient Occlusion radius in meters, between 0 and ~10.

Default

0.3

Defined in

src/types/Options.ts:9


resolution?

optional resolution: number

How each dimension of the AO buffer is scaled. Must be either 0.5 or 1.0.

Default

0.5

Defined in

src/types/Options.ts:27


upsampling?

optional upsampling: QualityLevel

Affects AO buffer upsampling quality.

Default

'LOW'

Defined in

src/types/Options.ts:57