Class Material
Assembly: Evergine.Assets.dll
Syntax
Properties
AlphaCutoff
The alpha cutoff value of the material.
Declaration
[JsonProperty("alphaCutoff")]
public float AlphaCutoff { get; set; }
Property Value
AlphaMode
The alpha rendering mode of the material.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("alphaMode")]
public Material.AlphaModeEnum AlphaMode { get; set; }
Property Value
DoubleSided
Specifies whether the material is double sided.
Declaration
[JsonProperty("doubleSided")]
public bool DoubleSided { get; set; }
Property Value
EmissiveFactor
The emissive color of the material.
Declaration
[JsonConverter(typeof(ArrayConverter))]
[JsonProperty("emissiveFactor")]
public float[] EmissiveFactor { get; set; }
Property Value
EmissiveTexture
The emissive map texture.
Declaration
[JsonProperty("emissiveTexture")]
public TextureInfo EmissiveTexture { get; set; }
Property Value
Extensions
Dictionary object with extension-specific objects.
Declaration
[JsonProperty("extensions")]
public Dictionary<string, object> Extensions { get; set; }
Property Value
Application-specific data.
Declaration
[JsonProperty("extras")]
public Extras Extras { get; set; }
Property Value
Name
The user-defined name of this object.
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
NormalTexture
Declaration
[JsonProperty("normalTexture")]
public MaterialNormalTextureInfo NormalTexture { get; set; }
Property Value
OcclusionTexture
The occlusion map texture.
Declaration
[JsonProperty("occlusionTexture")]
public MaterialOcclusionTextureInfo OcclusionTexture { get; set; }
Property Value
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
Methods
ShouldSerializeAlphaCutoff()
Declaration
public bool ShouldSerializeAlphaCutoff()
Returns
ShouldSerializeAlphaMode()
Declaration
public bool ShouldSerializeAlphaMode()
Returns
ShouldSerializeDoubleSided()
Declaration
public bool ShouldSerializeDoubleSided()
Returns
ShouldSerializeEmissiveFactor()
Declaration
public bool ShouldSerializeEmissiveFactor()
Returns
ShouldSerializeEmissiveTexture()
Declaration
public bool ShouldSerializeEmissiveTexture()
Returns
ShouldSerializeExtensions()
Declaration
public bool ShouldSerializeExtensions()
Returns
Declaration
public bool ShouldSerializeExtras()
Returns
ShouldSerializeName()
Declaration
public bool ShouldSerializeName()
Returns
ShouldSerializeNormalTexture()
Declaration
public bool ShouldSerializeNormalTexture()
Returns
ShouldSerializeOcclusionTexture()
Declaration
public bool ShouldSerializeOcclusionTexture()
Returns
Declaration
public bool ShouldSerializePbrMetallicRoughness()
Returns
Extension Methods