@pixi/3d
    Preparing search index...

    Interface ClearcoatProps

    Runtime controls for a material's clearcoat group, as material.clearcoat

    const material = new Material3D({ clearcoat: {} });
    material.clearcoat!.roughness = 0.2;
    interface ClearcoatProps {
        factor: number;
        normalScale: number;
        normalTexture?: Texture<TextureSource<any>>;
        roughness: number;
        roughnessTexture: Texture;
        texture: Texture;
    }
    Index
    factor: number

    Strength of the coat, from 0 (none) to 1

    material.clearcoat!.factor = 0.7;
    
    normalScale: number

    Strength of the coat normal map's bumps; no effect without a coat normal map

    material.clearcoat!.normalScale = 0.5;
    
    normalTexture?: Texture<TextureSource<any>>

    The coat normal map, or undefined when the material was built without one

    Read-only: to add one, clone the material with clearcoat: { normalTexture }; to swap it, assign material.textures.clearcoatNormal.

    roughness: number

    Roughness of the coat, independent of the surface underneath

    material.clearcoat!.roughness = 0.1;
    
    roughnessTexture: Texture

    Map whose green channel scales roughness

    material.clearcoat!.roughnessTexture = await Assets.load('coat-roughness.png');
    
    texture: Texture

    Map whose red channel scales factor

    material.clearcoat!.texture = await Assets.load('coat-mask.png');