mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class GltfPbrMetallicRoughness

    A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology. https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/material.pbrMetallicRoughness.schema.json

    Inheritance
    Object
    GltfProperty
    GltfPbrMetallicRoughness
    Inherited Members
    GltfProperty.Extensions
    GltfProperty.Extras
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema
    Assembly: cs.temp.dll.dll
    Syntax
    public class GltfPbrMetallicRoughness : GltfProperty

    Fields

    baseColorFactor

    The RGBA components of the base color of the material. The fourth component (A) is the opacity of the material. These values are linear.

    Declaration
    public float[] baseColorFactor
    Field Value
    Type Description
    Single[]

    baseColorFactor

    The RGBA components of the base color of the material. The fourth component (A) is the opacity of the material. These values are linear.

    Declaration
    public float[] baseColorFactor
    Field Value
    Type Description
    Single[]

    baseColorTexture

    The base color texture. This texture contains RGB(A) components in sRGB color space. The first three components (RGB) specify the base color of the material. If the fourth component (A) is present, it represents the opacity of the material. Otherwise, an opacity of 1.0 is assumed.

    Declaration
    public GltfTextureInfo baseColorTexture
    Field Value
    Type Description
    GltfTextureInfo

    baseColorTexture

    The base color texture. This texture contains RGB(A) components in sRGB color space. The first three components (RGB) specify the base color of the material. If the fourth component (A) is present, it represents the opacity of the material. Otherwise, an opacity of 1.0 is assumed.

    Declaration
    public GltfTextureInfo baseColorTexture
    Field Value
    Type Description
    GltfTextureInfo

    metallicFactor

    The metalness of the material. A value of 1.0 means the material is a metal. A value of 0.0 means the material is a dielectric. Values in between are for blending between metals and dielectrics such as dirty metallic surfaces. This value is linear.

    Declaration
    public double metallicFactor
    Field Value
    Type Description
    Double

    metallicFactor

    The metalness of the material. A value of 1.0 means the material is a metal. A value of 0.0 means the material is a dielectric. Values in between are for blending between metals and dielectrics such as dirty metallic surfaces. This value is linear.

    Declaration
    public double metallicFactor
    Field Value
    Type Description
    Double

    metallicRoughnessTexture

    The metallic-roughness texture has two components. The first component (R) contains the metallic-ness of the material. The second component (G) contains the roughness of the material. These values are linear. If the third component (B) and/or the fourth component (A) are present, they are ignored.

    Declaration
    public GltfTextureInfo metallicRoughnessTexture
    Field Value
    Type Description
    GltfTextureInfo

    metallicRoughnessTexture

    The metallic-roughness texture has two components. The first component (R) contains the metallic-ness of the material. The second component (G) contains the roughness of the material. These values are linear. If the third component (B) and/or the fourth component (A) are present, they are ignored.

    Declaration
    public GltfTextureInfo metallicRoughnessTexture
    Field Value
    Type Description
    GltfTextureInfo

    roughnessFactor

    The roughness of the material. A value of 1.0 means the material is completely rough. A value of 0.0 means the material is completely smooth. This value is linear.

    Declaration
    public double roughnessFactor
    Field Value
    Type Description
    Double

    roughnessFactor

    The roughness of the material. A value of 1.0 means the material is completely rough. A value of 0.0 means the material is completely smooth. This value is linear.

    Declaration
    public double roughnessFactor
    Field Value
    Type Description
    Double
    In This Article
    • Fields
      • baseColorFactor
      • baseColorFactor
      • baseColorTexture
      • baseColorTexture
      • metallicFactor
      • metallicFactor
      • metallicRoughnessTexture
      • metallicRoughnessTexture
      • roughnessFactor
      • roughnessFactor
    Back to top Generated by DocFX