API

Interface IridescenceProps

Iridescence thin-film properties. Maps to BJS PBRMaterial.iridescence and KHR_materials_iridescence.

interface IridescenceProps {
    indexOfRefraction?: number;
    intensity?: number;
    isEnabled?: boolean;
    maximumThickness?: number;
    minimumThickness?: number;
    texture?: Texture2D;
    thicknessTexture?: Texture2D;
}
Index
indexOfRefraction?: number

Thin-film index of refraction. Default 1.3.

intensity?: number

Iridescence blend intensity (0=off, 1=full). Default 1.0 for native PBR; glTF default is supplied by the loader.

isEnabled?: boolean

Whether iridescence is active. Default false.

maximumThickness?: number

Maximum film thickness in nanometres. Default 400.

minimumThickness?: number

Minimum film thickness in nanometres. Default 100.

texture?: Texture2D

Optional intensity texture; R channel multiplies intensity.

thicknessTexture?: Texture2D

Optional thickness texture; G channel lerps minimum→maximum thickness.