mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class GltfMaterial

    The material appearance of a primitive. https://github.com/KhronosGroup/glTF/tree/master/specification/2.0/schema

    Inheritance
    Object
    GltfProperty
    GltfChildOfRootProperty
    GltfMaterial
    Inherited Members
    GltfChildOfRootProperty.name
    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 GltfMaterial : GltfChildOfRootProperty

    Fields

    alphaCutoff

    Specifies the cutoff threshold when in MASK mode. If the alpha value is greater than or equal to this value then it is rendered as fully opaque, otherwise, it is rendered as fully transparent. This value is ignored for other modes.

    Declaration
    public double alphaCutoff
    Field Value
    Type Description
    Double

    alphaCutoff

    Specifies the cutoff threshold when in MASK mode. If the alpha value is greater than or equal to this value then it is rendered as fully opaque, otherwise, it is rendered as fully transparent. This value is ignored for other modes.

    Declaration
    public double alphaCutoff
    Field Value
    Type Description
    Double

    alphaMode

    The material's alpha rendering mode enumeration specifying the interpretation of the alpha value of the main factor and texture. In OPAQUE mode, the alpha value is ignored and the rendered output is fully opaque. In MASK mode, the rendered output is either fully opaque or fully transparent depending on the alpha value and the specified alpha cutoff value. In BLEND mode, the alpha value is used to composite the source and destination areas. The rendered output is combined with the background using the normal painting operation (i.e. the Porter and Duff over operator).

    Declaration
    public string alphaMode
    Field Value
    Type Description
    String

    alphaMode

    The material's alpha rendering mode enumeration specifying the interpretation of the alpha value of the main factor and texture. In OPAQUE mode, the alpha value is ignored and the rendered output is fully opaque. In MASK mode, the rendered output is either fully opaque or fully transparent depending on the alpha value and the specified alpha cutoff value. In BLEND mode, the alpha value is used to composite the source and destination areas. The rendered output is combined with the background using the normal painting operation (i.e. the Porter and Duff over operator).

    Declaration
    public string alphaMode
    Field Value
    Type Description
    String

    commonConstant

    A set of parameter values used to light flat-shaded materials

    Declaration
    public GltfMaterialCommonConstant commonConstant
    Field Value
    Type Description
    GltfMaterialCommonConstant

    commonConstant

    A set of parameter values used to light flat-shaded materials

    Declaration
    public GltfMaterialCommonConstant commonConstant
    Field Value
    Type Description
    GltfMaterialCommonConstant

    doubleSided

    Specifies whether the material is double sided. When this value is false, back-face culling is enabled. When this value is true, back-face culling is disabled and double sided lighting is enabled. The back-face must have its normals reversed before the lighting equation is evaluated.

    Declaration
    public bool doubleSided
    Field Value
    Type Description
    Boolean

    doubleSided

    Specifies whether the material is double sided. When this value is false, back-face culling is enabled. When this value is true, back-face culling is disabled and double sided lighting is enabled. The back-face must have its normals reversed before the lighting equation is evaluated.

    Declaration
    public bool doubleSided
    Field Value
    Type Description
    Boolean

    emissiveFactor

    The RGB components of the emissive color of the material. If an emissiveTexture is specified, this value is multiplied with the texel values. 0.0 1.0 3 3

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

    emissiveFactor

    The RGB components of the emissive color of the material. If an emissiveTexture is specified, this value is multiplied with the texel values. 0.0 1.0 3 3

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

    emissiveTexture

    The emissive map controls the color and intensity of the light being emitted by the material. This texture contains RGB components in sRGB color space. If a fourth component (A) is present, it is ignored.

    Declaration
    public GltfTextureInfo emissiveTexture
    Field Value
    Type Description
    GltfTextureInfo

    emissiveTexture

    The emissive map controls the color and intensity of the light being emitted by the material. This texture contains RGB components in sRGB color space. If a fourth component (A) is present, it is ignored.

    Declaration
    public GltfTextureInfo emissiveTexture
    Field Value
    Type Description
    GltfTextureInfo

    normalTexture

    A tangent space normal map. Each texel represents the XYZ components of a normal vector in tangent space.

    Declaration
    public GltfNormalTextureInfo normalTexture
    Field Value
    Type Description
    GltfNormalTextureInfo

    normalTexture

    A tangent space normal map. Each texel represents the XYZ components of a normal vector in tangent space.

    Declaration
    public GltfNormalTextureInfo normalTexture
    Field Value
    Type Description
    GltfNormalTextureInfo

    occlusionTexture

    The occlusion map is a greyscale texture, with white indicating areas that should receive full indirect lighting and black indicating no indirect lighting.

    Declaration
    public GltfOcclusionTextureInfo occlusionTexture
    Field Value
    Type Description
    GltfOcclusionTextureInfo

    occlusionTexture

    The occlusion map is a greyscale texture, with white indicating areas that should receive full indirect lighting and black indicating no indirect lighting.

    Declaration
    public GltfOcclusionTextureInfo occlusionTexture
    Field Value
    Type Description
    GltfOcclusionTextureInfo

    pbrMetallicRoughness

    A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.

    Declaration
    public GltfPbrMetallicRoughness pbrMetallicRoughness
    Field Value
    Type Description
    GltfPbrMetallicRoughness

    pbrMetallicRoughness

    A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.

    Declaration
    public GltfPbrMetallicRoughness pbrMetallicRoughness
    Field Value
    Type Description
    GltfPbrMetallicRoughness

    Properties

    Material

    Unity Material wrapper for the GltfMaterial

    Declaration
    public Material Material { get; }
    Property Value
    Type Description
    Material

    Material

    Unity Material wrapper for the GltfMaterial

    Declaration
    public Material Material { get; }
    Property Value
    Type Description
    Material
    In This Article
    • Fields
      • alphaCutoff
      • alphaCutoff
      • alphaMode
      • alphaMode
      • commonConstant
      • commonConstant
      • doubleSided
      • doubleSided
      • emissiveFactor
      • emissiveFactor
      • emissiveTexture
      • emissiveTexture
      • normalTexture
      • normalTexture
      • occlusionTexture
      • occlusionTexture
      • pbrMetallicRoughness
      • pbrMetallicRoughness
    • Properties
      • Material
      • Material
    Back to top Generated by DocFX