Small World Engine API Reference - v0.76.20
    Preparing search index...

    Class HbaoElement

    Ground-truth-ish ambient occlusion (HBAO) effect parameters. Darkens contact/crevice areas by estimating the horizon angle around each pixel from the opaque depth buffer. WebGL2 and WebGPU only -- WebGL1 has no sampleable depth texture to reconstruct view-space position from.

    Hierarchy (View Summary)

    Index
    enabled: boolean = false

    Off by default -- opt-in, unlike the pre-existing effects registered for backward compat.

    intensity: number = 1.0

    Strength of the darkening (default: 1.0).

    radius: number = 0.5

    World-space search radius for occluders (default: 0.5).

    type: HBAO = PostProcessingEffectType.HBAO

    Unique string identifier for the effect.