@pixi/3d
    Preparing search index...

    Interface SpecularProps

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

    const material = new Material3D({ specular: {} });
    material.specular!.factor = 0.25;
    interface SpecularProps {
        factor: number;
        texture: Texture;
        get color(): number;
        set color(value: ColorSource): void;
    }
    Index
    factor: number

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

    material.specular!.factor = 0;
    
    texture: Texture

    The packed map, tint in RGB and strength in alpha

    material.specular!.texture = await Assets.load('specular.png');
    
    • get color(): number

      Tint of the non-metal reflection; takes any ColorSource and reads back a hex number, like Container.tint

      Returns number

      material.specular!.color = 0xffe0c0;
      
    • set color(value: ColorSource): void

      Sets the tint from any ColorSource

      Parameters

      Returns void