Class MaterialInfo
Structure with basic information about the material surface. It describes how material is reacting on light and which graphical features of it requires to render.
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class MaterialInfo : ValueType
Fields
BlendMode
The blending mode for rendering.
Declaration
public MaterialBlendMode BlendMode
Field Value
MaterialBlendMode
|
CullMode
DecalBlendingMode
The decal material blending mode.
Declaration
public MaterialDecalBlendingMode DecalBlendingMode
Field Value
MaterialDecalBlendingMode
|
Domain
FeaturesFlags
The features usage flags.
Declaration
public MaterialFeaturesFlags FeaturesFlags
Field Value
MaterialFeaturesFlags
|
MaskThreshold
The mask threshold.
Declaration
public float MaskThreshold
Field Value
System.Single
|
MaxTessellationFactor
The maximum tessellation factor (used only if material uses tessellation).
Declaration
public int MaxTessellationFactor
Field Value
System.Int32
|
OpacityThreshold
The opacity threshold.
Declaration
public float OpacityThreshold
Field Value
System.Single
|
PostFxLocation
The post fx material rendering location.
Declaration
public MaterialPostFxLocation PostFxLocation
Field Value
MaterialPostFxLocation
|
ShadingModel
The shading mode for lighting.
Declaration
public MaterialShadingModel ShadingModel
Field Value
MaterialShadingModel
|
TessellationMode
The tessellation mode.
Declaration
public TessellationMethod TessellationMode
Field Value
TessellationMethod
|
TransparentLightingMode
The transparent material lighting mode.
Declaration
public MaterialTransparentLightingMode TransparentLightingMode
Field Value
MaterialTransparentLightingMode
|
UsageFlags
Properties
Default
The default MaterialInfo.
Declaration
public static MaterialInfo Default { get; }
Property Value
MaterialInfo
|
Methods
CreateDefault()
Creates the default MaterialInfo.
Declaration
public static MaterialInfo CreateDefault()
Returns
MaterialInfo
The result. |
Equals(MaterialInfo)
Compares with the other material info and returns true if both values are equal.
Declaration
public bool Equals(MaterialInfo other)
Parameters
MaterialInfo
other
The other info. |
Returns
System.Boolean
True if both objects are equal, otherwise false. |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Operators
Equality(MaterialInfo, MaterialInfo)
Implements the operator ==.
Declaration
public static bool operator ==(MaterialInfo a, MaterialInfo b)
Parameters
MaterialInfo
a
The a. |
MaterialInfo
b
The b. |
Returns
System.Boolean
The result of the operator. |
Inequality(MaterialInfo, MaterialInfo)
Implements the operator !=.
Declaration
public static bool operator !=(MaterialInfo a, MaterialInfo b)
Parameters
MaterialInfo
a
The a. |
MaterialInfo
b
The b. |
Returns
System.Boolean
The result of the operator. |