Search Results for

    Show / Hide Table of Contents

    Class Material

    Inheritance
    object
    Material
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: glTFLoader.Schema
    Assembly: Evergine.Assets.dll
    Syntax
    public class Material

    Properties

    AlphaCutoff

    The alpha cutoff value of the material.

    Declaration
    [JsonProperty("alphaCutoff")]
    public float AlphaCutoff { get; set; }
    Property Value
    Type Description
    float

    AlphaMode

    The alpha rendering mode of the material.

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    [JsonProperty("alphaMode")]
    public Material.AlphaModeEnum AlphaMode { get; set; }
    Property Value
    Type Description
    Material.AlphaModeEnum

    DoubleSided

    Specifies whether the material is double sided.

    Declaration
    [JsonProperty("doubleSided")]
    public bool DoubleSided { get; set; }
    Property Value
    Type Description
    bool

    EmissiveFactor

    The emissive color of the material.

    Declaration
    [JsonConverter(typeof(ArrayConverter))]
    [JsonProperty("emissiveFactor")]
    public float[] EmissiveFactor { get; set; }
    Property Value
    Type Description
    float[]

    EmissiveTexture

    The emissive map texture.

    Declaration
    [JsonProperty("emissiveTexture")]
    public TextureInfo EmissiveTexture { get; set; }
    Property Value
    Type Description
    TextureInfo

    Extensions

    Dictionary object with extension-specific objects.

    Declaration
    [JsonProperty("extensions")]
    public Dictionary<string, object> Extensions { get; set; }
    Property Value
    Type Description
    Dictionary<string, object>

    Extras

    Application-specific data.

    Declaration
    [JsonProperty("extras")]
    public Extras Extras { get; set; }
    Property Value
    Type Description
    Extras

    Name

    The user-defined name of this object.

    Declaration
    [JsonProperty("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    NormalTexture

    The normal map texture.

    Declaration
    [JsonProperty("normalTexture")]
    public MaterialNormalTextureInfo NormalTexture { get; set; }
    Property Value
    Type Description
    MaterialNormalTextureInfo

    OcclusionTexture

    The occlusion map texture.

    Declaration
    [JsonProperty("occlusionTexture")]
    public MaterialOcclusionTextureInfo OcclusionTexture { get; set; }
    Property Value
    Type Description
    MaterialOcclusionTextureInfo

    PbrMetallicRoughness

    A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology. When not specified, all the default values of pbrMetallicRoughness apply.

    Declaration
    [JsonProperty("pbrMetallicRoughness")]
    public MaterialPbrMetallicRoughness PbrMetallicRoughness { get; set; }
    Property Value
    Type Description
    MaterialPbrMetallicRoughness

    Methods

    ShouldSerializeAlphaCutoff()

    Declaration
    public bool ShouldSerializeAlphaCutoff()
    Returns
    Type Description
    bool

    ShouldSerializeAlphaMode()

    Declaration
    public bool ShouldSerializeAlphaMode()
    Returns
    Type Description
    bool

    ShouldSerializeDoubleSided()

    Declaration
    public bool ShouldSerializeDoubleSided()
    Returns
    Type Description
    bool

    ShouldSerializeEmissiveFactor()

    Declaration
    public bool ShouldSerializeEmissiveFactor()
    Returns
    Type Description
    bool

    ShouldSerializeEmissiveTexture()

    Declaration
    public bool ShouldSerializeEmissiveTexture()
    Returns
    Type Description
    bool

    ShouldSerializeExtensions()

    Declaration
    public bool ShouldSerializeExtensions()
    Returns
    Type Description
    bool

    ShouldSerializeExtras()

    Declaration
    public bool ShouldSerializeExtras()
    Returns
    Type Description
    bool

    ShouldSerializeName()

    Declaration
    public bool ShouldSerializeName()
    Returns
    Type Description
    bool

    ShouldSerializeNormalTexture()

    Declaration
    public bool ShouldSerializeNormalTexture()
    Returns
    Type Description
    bool

    ShouldSerializeOcclusionTexture()

    Declaration
    public bool ShouldSerializeOcclusionTexture()
    Returns
    Type Description
    bool

    ShouldSerializePbrMetallicRoughness()

    Declaration
    public bool ShouldSerializePbrMetallicRoughness()
    Returns
    Type Description
    bool

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX