Class MaterialData
Runtime Material Data stores material information.
Namespace: Evergine.Framework.Runtimes
Assembly: Evergine.Framework.dll
Syntax
public abstract class MaterialData
Properties
AlphaCutoff
Gets the alpha test value.
Declaration
public abstract float AlphaCutoff { get; }
Property Value
Type | Description |
---|---|
float |
AlphaMode
Gets the alpha mode (opaque, mask, blend).
Declaration
public abstract AlphaMode AlphaMode { get; }
Property Value
Type | Description |
---|---|
AlphaMode |
BaseColor
Gets the diffuse color.
Declaration
public abstract Color BaseColor { get; }
Property Value
Type | Description |
---|---|
Color |
EmissiveColor
Gets the emission factor.
Declaration
public abstract LinearColor EmissiveColor { get; }
Property Value
Type | Description |
---|---|
LinearColor |
HasDoubleSided
Gets a value indicating whether the material must render with double sided.
Declaration
public abstract bool HasDoubleSided { get; }
Property Value
Type | Description |
---|---|
bool |
HasVertexColor
Gets a value indicating whether the vertex format has color.
Declaration
public abstract bool HasVertexColor { get; }
Property Value
Type | Description |
---|---|
bool |
HasVertexNormal
Gets a value indicating whether the vertex format has normals.
Declaration
public abstract bool HasVertexNormal { get; }
Property Value
Type | Description |
---|---|
bool |
HasVertexTangent
Gets a value indicating whether the vertex format has a tangent.
Declaration
public abstract bool HasVertexTangent { get; }
Property Value
Type | Description |
---|---|
bool |
HasVertexTexcoord
Gets a value indicating whether the vertex format has texture coordinates.
Declaration
public abstract bool HasVertexTexcoord { get; }
Property Value
Type | Description |
---|---|
bool |
MetallicFactor
Gets the metallic factor.
Declaration
public abstract float MetallicFactor { get; }
Property Value
Type | Description |
---|---|
float |
Name
Gets the material name.
Declaration
public abstract string Name { get; }
Property Value
Type | Description |
---|---|
string |
RoughnessFactor
Gets the roughness factor.
Declaration
public abstract float RoughnessFactor { get; }
Property Value
Type | Description |
---|---|
float |
Methods
GetBaseColorTextureAndSampler()
Gets the diffuse color texture.
Declaration
public abstract Task<(Texture Texture, SamplerState Sampler)> GetBaseColorTextureAndSampler()
Returns
Type | Description |
---|---|
Task<(Texture Texture, SamplerState Sampler)> | Texture and sampler instances. |
GetEmissiveTextureAndSampler()
Gets the emissive texture.
Declaration
public abstract Task<(Texture Texture, SamplerState Sampler)> GetEmissiveTextureAndSampler()
Returns
Type | Description |
---|---|
Task<(Texture Texture, SamplerState Sampler)> | Texture and sampler instances. |
GetMetallicRoughnessTextureAndSampler()
Gets the metallic roughness texture.
Declaration
public abstract Task<(Texture Texture, SamplerState Sampler)> GetMetallicRoughnessTextureAndSampler()
Returns
Type | Description |
---|---|
Task<(Texture Texture, SamplerState Sampler)> | Texture and sampler instance. |
GetNormalTextureAndSampler()
Gets the normal texture.
Declaration
public abstract Task<(Texture Texture, SamplerState Sampler)> GetNormalTextureAndSampler()
Returns
Type | Description |
---|---|
Task<(Texture Texture, SamplerState Sampler)> | Texture and sampler instance. |
GetOcclusionTextureAndSampler()
Gets the occlusion texture.
Declaration
public abstract Task<(Texture Texture, SamplerState Sampler)> GetOcclusionTextureAndSampler()
Returns
Type | Description |
---|---|
Task<(Texture Texture, SamplerState Sampler)> | Texture and sampler instance. |