@pixi/3d
    Preparing search index...

    Interface SheenProps

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

    const material = new Material3D({ sheen: {} });
    material.sheen!.color = 0xffd0e0;
    interface SheenProps {
        roughness: number;
        texture: Texture;
        get color(): number;
        set color(value: ColorSource): void;
    }
    Index
    roughness: number

    Roughness of the sheen, from 0 to 1

    material.sheen!.roughness = 0.6;
    
    texture: Texture

    The packed map, colour in RGB and roughness in alpha

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

      Colour of the sheen; takes any ColorSource and reads back a hex number, like Container.tint

      Returns number

      material.sheen!.color = 'pink';
      
    • set color(value: ColorSource): void

      Sets the sheen colour from any ColorSource

      Parameters

      Returns void