Search Results for

    Show / Hide Table of Contents

    Class USDMaterialData

    Represents the material data for USD (Universal Scene Description) materials.

    Inheritance
    object
    MaterialData
    USDMaterialData
    Namespace: Evergine.Runtimes.USD
    Assembly: Evergine.Runtimes.USD.dll
    Syntax
    public class USDMaterialData : MaterialData

    Constructors

    USDMaterialData(USDMaterial, USDRuntime)

    Initializes a new instance of the USDMaterialData class.

    Declaration
    public USDMaterialData(USDMaterial usdMaterial, USDRuntime usd)
    Parameters
    Type Name Description
    USDMaterial usdMaterial

    The USD material.

    USDRuntime usd

    The USD runtime.

    Fields

    USDMaterial

    Gets the USD material.

    Declaration
    public USDMaterial USDMaterial
    Field Value
    Type Description
    USDMaterial

    usd

    Gets the USD runtime.

    Declaration
    public USDRuntime usd
    Field Value
    Type Description
    USDRuntime

    Properties

    AlphaCutoff

    Gets the alpha test value.

    Declaration
    public override float AlphaCutoff { get; }
    Property Value
    Type Description
    float
    Overrides
    MaterialData.AlphaCutoff

    AlphaMode

    Gets the alpha mode (opaque, mask, blend).

    Declaration
    public override AlphaMode AlphaMode { get; }
    Property Value
    Type Description
    AlphaMode
    Overrides
    MaterialData.AlphaMode

    BaseColor

    Gets the diffuse color.

    Declaration
    public override Color BaseColor { get; }
    Property Value
    Type Description
    Color
    Overrides
    MaterialData.BaseColor

    ClearcoatFactor

    Gets the clearcoat factor.

    Declaration
    public float ClearcoatFactor { get; }
    Property Value
    Type Description
    float

    ClearcoatRoughnessFactor

    Gets the clearcoat roughness factor.

    Declaration
    public float ClearcoatRoughnessFactor { get; }
    Property Value
    Type Description
    float

    EmissiveColor

    Gets the emission factor.

    Declaration
    public override LinearColor EmissiveColor { get; }
    Property Value
    Type Description
    LinearColor
    Overrides
    MaterialData.EmissiveColor

    HasDoubleSided

    Gets a value indicating whether the material must render with double sided.

    Declaration
    public override bool HasDoubleSided { get; }
    Property Value
    Type Description
    bool
    Overrides
    MaterialData.HasDoubleSided

    HasVertexColor

    Gets a value indicating whether the vertex format has color.

    Declaration
    public override bool HasVertexColor { get; }
    Property Value
    Type Description
    bool
    Overrides
    MaterialData.HasVertexColor

    HasVertexNormal

    Gets a value indicating whether the vertex format has normals.

    Declaration
    public override bool HasVertexNormal { get; }
    Property Value
    Type Description
    bool
    Overrides
    MaterialData.HasVertexNormal

    HasVertexTangent

    Gets a value indicating whether the vertex format has a tangent.

    Declaration
    public override bool HasVertexTangent { get; }
    Property Value
    Type Description
    bool
    Overrides
    MaterialData.HasVertexTangent

    HasVertexTexcoord

    Gets a value indicating whether the vertex format has texture coordinates.

    Declaration
    public override bool HasVertexTexcoord { get; }
    Property Value
    Type Description
    bool
    Overrides
    MaterialData.HasVertexTexcoord

    MetallicFactor

    Gets the metallic factor.

    Declaration
    public override float MetallicFactor { get; }
    Property Value
    Type Description
    float
    Overrides
    MaterialData.MetallicFactor

    Name

    Gets the material name.

    Declaration
    public override string Name { get; }
    Property Value
    Type Description
    string
    Overrides
    MaterialData.Name

    Reflectance

    Gets the reflectance value.

    Declaration
    public float Reflectance { get; }
    Property Value
    Type Description
    float

    RoughnessFactor

    Gets the roughness factor.

    Declaration
    public override float RoughnessFactor { get; }
    Property Value
    Type Description
    float
    Overrides
    MaterialData.RoughnessFactor

    Methods

    GetBaseColorTextureAndSampler()

    Gets the diffuse color texture.

    Declaration
    public override Task<(Texture Texture, SamplerState Sampler)> GetBaseColorTextureAndSampler()
    Returns
    Type Description
    Task<(Texture Texture, SamplerState Sampler)>

    Texture and sampler instances.

    Overrides
    MaterialData.GetBaseColorTextureAndSampler()

    GetEmissiveTextureAndSampler()

    Gets the emissive texture.

    Declaration
    public override Task<(Texture Texture, SamplerState Sampler)> GetEmissiveTextureAndSampler()
    Returns
    Type Description
    Task<(Texture Texture, SamplerState Sampler)>

    Texture and sampler instances.

    Overrides
    MaterialData.GetEmissiveTextureAndSampler()

    GetMetallicRoughnessTextureAndSampler()

    Gets the metallic roughness texture.

    Declaration
    public override Task<(Texture Texture, SamplerState Sampler)> GetMetallicRoughnessTextureAndSampler()
    Returns
    Type Description
    Task<(Texture Texture, SamplerState Sampler)>

    Texture and sampler instance.

    Overrides
    MaterialData.GetMetallicRoughnessTextureAndSampler()

    GetNormalTextureAndSampler()

    Gets the normal texture.

    Declaration
    public override Task<(Texture Texture, SamplerState Sampler)> GetNormalTextureAndSampler()
    Returns
    Type Description
    Task<(Texture Texture, SamplerState Sampler)>

    Texture and sampler instance.

    Overrides
    MaterialData.GetNormalTextureAndSampler()

    GetOcclusionTextureAndSampler()

    Gets the occlusion texture.

    Declaration
    public override Task<(Texture Texture, SamplerState Sampler)> GetOcclusionTextureAndSampler()
    Returns
    Type Description
    Task<(Texture Texture, SamplerState Sampler)>

    Texture and sampler instance.

    Overrides
    MaterialData.GetOcclusionTextureAndSampler()

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX