Class MaterialUsageFlags
Material features usage flags. Detected by the material generator to help graphics pipeline optimize rendering of material shaders.
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class MaterialUsageFlags : Enum
Fields
None
UseDisplacement
The material is using position displacement (in domain shader).
Declaration
public const MaterialUsageFlags UseDisplacement
Field Value
MaterialUsageFlags
|
UseEmissive
The material is using emissive light.
Declaration
public const MaterialUsageFlags UseEmissive
Field Value
MaterialUsageFlags
|
UseMask
Material is using mask to discard some pixels. Masked materials are using full vertex buffer during shadow maps and depth pass rendering (need UVs).
Declaration
public const MaterialUsageFlags UseMask
Field Value
MaterialUsageFlags
|
UseNormal
The material is using per-pixel normal mapping.
Declaration
public const MaterialUsageFlags UseNormal
Field Value
MaterialUsageFlags
|
UsePositionOffset
The material is using world position offset (it may be animated inside a shader).
Declaration
public const MaterialUsageFlags UsePositionOffset
Field Value
MaterialUsageFlags
|
UseRefraction
The flag used to indicate that material uses refraction feature.
Declaration
public const MaterialUsageFlags UseRefraction
Field Value
MaterialUsageFlags
|
UseVertexColor
The material is using vertex colors. The render will try to feed the pipeline with a proper buffer so material can gather valid data.
Declaration
public const MaterialUsageFlags UseVertexColor
Field Value
MaterialUsageFlags
|
value__
Declaration
public uint value__
Field Value
System.UInt32
|