Taos API Reference
    Preparing search index...

    Interface CookieParams

    Directional light cookie (gobo) — a texture projected along the sun. See DeferredLightingPass.setCookie.

    interface CookieParams {
        texture: GPUTexture | null;
        scale?: number;
        offset?: [number, number];
    }
    Index

    Properties

    texture: GPUTexture | null

    The cookie texture (its RGB multiplies the sun). Pass null to disable.

    scale?: number

    World units per cookie tile (the pattern repeats every scale meters). Default 4.

    offset?: [number, number]

    Scroll offset in cookie-UV space — animate it for drifting clouds.