Taos API Reference
    Preparing search index...

    Interface ContactShadowParams

    Screen-space contact-shadow tuning for the sun (see DeferredLightingPass.setContactShadows).

    interface ContactShadowParams {
        distance: number;
        thickness: number;
        steps: number;
        intensity: number;
    }
    Index

    Properties

    distance: number

    World-space length of the toward-sun march. ~1–3 reads as fine contact AO.

    thickness: number

    Occluder thickness for the depth-crossing test, world units (~0.2–0.5).

    steps: number

    March sample count. 0 disables contact shadows; ~8–16 is typical.

    intensity: number

    Darkening applied when occluded, [0, 1] (1 = full contact shadow).