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
CullMode
DecalBlendingMode
The decal material blending mode.
Declaration
public MaterialDecalBlendingMode DecalBlendingMode
Field Value
Domain
FeaturesFlags
The features usage flags.
Declaration
public MaterialFeaturesFlags FeaturesFlags
Field Value
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
ShadingModel
The shading mode for lighting.
Declaration
public MaterialShadingModel ShadingModel
Field Value
TessellationMode
The tessellation mode.
Declaration
public TessellationMethod TessellationMode
Field Value
TransparentLightingMode
The transparent material lighting mode.
Declaration
public MaterialTransparentLightingMode TransparentLightingMode
Field Value
UsageFlags
Methods
operator==(const MaterialInfo& other)
Declaration
public bool operator==(const MaterialInfo& other) const
Parameters
Material
|
Returns
bool
|