@pixi/3d
    Preparing search index...

    Interface SpecularOptions

    Options for a Material3D's specular group (KHR_materials_specular): the strength and tint of the reflection on non-metal surfaces

    const varnish = new Material3D({ roughness: 0.3, specular: { factor: 0.6, color: 0xfff2dd } });
    
    interface SpecularOptions {
        color?: ColorSource;
        colorTexture?: Texture<TextureSource<any>>;
        factor?: number;
        texture?: Texture<TextureSource<any>>;
    }
    Index
    color?: ColorSource

    Tint of the non-metal reflection

    0xffffff
    
    const warm = new Material3D({ specular: { color: 0xffd0a0 } });
    
    colorTexture?: Texture<TextureSource<any>>

    Tint in RGB and strength in alpha, the packed image; used over texture when both are given

    const packed = new Material3D({ specular: { colorTexture: specularMap } });
    
    factor?: number

    Strength of the non-metal reflection, from 0 (none) to 1 (standard PBR)

    1
    
    const matte = new Material3D({ specular: { factor: 0 } });
    
    texture?: Texture<TextureSource<any>>

    Strength map, read from alpha; used only when there is no colorTexture

    The two share a slot, so its colour channels tint the reflection too: keep them white.

    const worn = new Material3D({ specular: { texture: wearMask } });