API

Interface ClearCoatProps

Clearcoat layer properties. Maps to BJS PBRMaterial.clearCoat sub-object.

interface ClearCoatProps {
    bumpTexture?: Texture2D;
    bumpTextureScale?: number;
    indexOfRefraction?: number;
    intensity?: number;
    isEnabled?: boolean;
    roughness?: number;
    roughnessTexture?: Texture2D;
    texture?: Texture2D;
    useF0Remap?: boolean;
}
Index
bumpTexture?: Texture2D

Optional clearcoat normal map (tangent-space). Used to perturb the coat layer normal independently of the base layer.

bumpTextureScale?: number

Clearcoat normal texture scale (glTF normalTexture.scale). Default 1.0.

indexOfRefraction?: number

Index of refraction of the clearcoat layer. Default 1.5.

intensity?: number

Clearcoat layer intensity (0=off, 1=full). Default 1.0.

isEnabled?: boolean

Whether clearcoat is active. Default false.

roughness?: number

Clearcoat layer roughness. Default 0.0 (perfectly smooth).

roughnessTexture?: Texture2D

Optional clearcoat roughness texture (G channel). Multiplies roughness.

texture?: Texture2D

Optional clearcoat intensity texture (R channel). Multiplies intensity.

useF0Remap?: boolean

Whether to remap base F0 across the clearcoat interface (CLEARCOAT_REMAP_F0). Matches BJS PBRClearCoatConfiguration.remapF0OnInterfaceChange. Default true. glTF loader sets this to false per KHR_materials_clearcoat.