Struct 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.
Assembly: FlaxEngine.dll
File: Engine/Graphics/Materials/MaterialInfo.h
Syntax
public struct MaterialInfo
Constructors
MaterialInfo()
Declaration
public MaterialInfo()
MaterialInfo(const MaterialInfo9& other)
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
float
|
MaxTessellationFactor
The maximum tessellation factor (used only if material uses tessellation).
Declaration
public int32 MaxTessellationFactor
Field Value
int32
|
OpacityThreshold
The opacity threshold.
Declaration
public float OpacityThreshold
Field Value
float
|
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
Methods
operator==(const MaterialInfo& other)
Declaration
public bool operator==(const MaterialInfo& other) const
Parameters
MaterialInfo
other
|
Returns
bool
|