@pixi/3d
    Preparing search index...

    Interface ClearcoatOptions

    Options for a Material3D's clearcoat group (KHR_materials_clearcoat): a clear lacquer layer on top, as on car paint or varnished wood

    const carPaint = new Material3D({ baseColor: 0x8c1c13, roughness: 0.5, clearcoat: { roughness: 0.03 } });
    
    interface ClearcoatOptions {
        factor?: number;
        normalScale?: number;
        normalTexture?: Texture<TextureSource<any>>;
        roughness?: number;
        roughnessTexture?: Texture<TextureSource<any>>;
        texture?: Texture<TextureSource<any>>;
    }
    Index
    factor?: number

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

    1
    
    const satinVarnish = new Material3D({ clearcoat: { factor: 0.5 } });
    
    normalScale?: number

    Strength of the coat normal map's bumps

    1
    
    const orangePeel = new Material3D({ clearcoat: { normalTexture: peelNormals, normalScale: 0.3 } });
    
    normalTexture?: Texture<TextureSource<any>>

    Normal map for the coat alone, green up like Material3DOptions#normalTexture

    Pass it here to have one; to add one later, clone the material with it. Without it the coat follows the geometry's normals, not the base normal map, and costs less.

    const dimpled = new Material3D({ clearcoat: { normalTexture: dimpleNormals } });
    
    roughness?: number

    Roughness of the coat, independent of the surface underneath

    0
    
    const hazyCoat = new Material3D({ clearcoat: { roughness: 0.4 } });
    
    roughnessTexture?: Texture<TextureSource<any>>

    Map whose green channel scales roughness

    const smudged = new Material3D({ clearcoat: { roughness: 1, roughnessTexture: smudgeMap } });
    
    texture?: Texture<TextureSource<any>>

    Map whose red channel scales factor

    const chipped = new Material3D({ clearcoat: { texture: chipMask } });