Class MetallicRoughness

MetallicRoughness - a builder for a GLTF pbrMetallicRoughness object

Hierarchy

  • default<
        {
            baseColorFactor: Vec4;
            baseColorTexture: TextureInfo;
            metallicFactor: number;
            metallicRoughnessTexture: TextureInfo;
            roughnessFactor: number;
        },
    >
    • MetallicRoughness

Properties

baseColourFactor: (baseColorFactor: Vec4) => MetallicRoughness

Type declaration

Methods

  • baseColorFactor - Sets the material's base color factor.

    Parameters

    • baseColorFactor: Vec4

      colour

    Returns MetallicRoughness

    this

  • metallicFactor - Sets the material's metallic factor.

    Parameters

    • metallicFactor: number

    Returns MetallicRoughness

    this

  • Sets the material's metallic roughness texture. The metalness values are sampled from the B channel. The roughness values are sampled from the G channel. These values are linear. If other channels are present (R or A), they are ignored for metallic-roughness

    Parameters

    Returns MetallicRoughness

    this

  • roughnessFactor - Sets the material's roughness factor.

    Parameters

    • roughnessFactor: number

    Returns MetallicRoughness

    this