Strata - v1.4.10
    Preparing search index...

    Interface DecalProps

    Props for the Decal component.

    interface DecalProps {
        color?: ColorRepresentation;
        depthTest?: boolean;
        depthWrite?: boolean;
        fadeTime?: number;
        normal: [number, number, number] | Vector3;
        opacity?: number;
        polygonOffsetFactor?: number;
        position: [number, number, number] | Vector3;
        rotation?: number;
        size?: number | [number, number];
        texture: Texture;
    }
    Index

    Properties

    color?: ColorRepresentation

    Tint color for the decal. Default: 0xffffff.

    depthTest?: boolean

    Whether to test against the depth buffer. Default: true.

    depthWrite?: boolean

    Whether to write to the depth buffer. Default: false.

    fadeTime?: number

    Time in seconds before the decal automatically fades out.

    normal: [number, number, number] | Vector3

    Surface normal direction for orientation.

    opacity?: number

    Decal opacity (0-1). Default: 1.

    polygonOffsetFactor?: number

    Z-fighting offset factor. Default: -4.

    position: [number, number, number] | Vector3

    World position of the decal center.

    rotation?: number

    Rotation around the normal axis in radians. Default: 0.

    size?: number | [number, number]

    Size of the decal (single number or [width, height]). Default: 1.

    texture: Texture

    Texture to apply to the decal.