Hilo3d API - v2.0.0-alpha.9
    Preparing search index...

    Interface PBRDecalOptions

    Bounded atlas and projector membership for one opaque PBR receiver material.

    interface PBRDecalOptions {
        baseColorAtlas: Texture<unknown>;
        baseColorEncoding?: "srgb" | "linear";
        normalAtlas?: Texture<unknown>;
        projectors: readonly DecalProjector[];
        receiverMask?: number;
        roughnessAtlas?: Texture<unknown>;
    }
    Index
    baseColorAtlas: Texture<unknown>

    Shared RGBA color atlas; alpha supplies coverage for color, normal and roughness together.

    baseColorEncoding?: "srgb" | "linear"

    Encoding of sampled RGB. Use linear for hardware-sRGB textures. Defaults to srgb.

    normalAtlas?: Texture<unknown>

    Optional tangent-space normal atlas, with the same rectangles as baseColorAtlas.

    projectors: readonly DecalProjector[]

    One to eight projectors. Membership is copied; projector data can change through update().

    receiverMask?: number

    Material receiver mask intersected with each projector's layer. Defaults to all bits.

    roughnessAtlas?: Texture<unknown>

    Optional linear roughness atlas, sampled from red; same rectangles as baseColorAtlas.