Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials
Inheritance Hierarchy
- FMaterialRelevance
- FPrimitiveViewRelevance
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialRelevance.h |
Include | #include "Materials/MaterialRelevance.h" |
Syntax
struct FMaterialRelevance
Remarks
The class is only storing bits, initialized to 0 and has an |= operator to provide a combined set of multiple materials (component / mesh)
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
union FMaterialRelevance::@2177 | @2178 | Bits that express which EMaterialShadingModel are used |
![]() |
uint8: 1 | bDecal | |
![]() |
uint8: 1 | bDisableDepthTest | |
![]() |
uint8: 1 | bDistortion | |
![]() |
uint8: 1 | bHairStrands | |
![]() |
uint8: 1 | bHasVolumeMaterialDomain | |
![]() |
uint8: 1 | bMasked | |
![]() |
uint8: 1 | bNormalTranslucency | |
![]() |
uint8: 1 | bOpaque | |
![]() |
uint8: 1 | bOutputsTranslucentVelocity | |
![]() |
uint8: 1 | bPostMotionBlurTranslucency | |
![]() |
uint8: 1 | bSeparateTranslucency | |
![]() |
uint8: 1 | bTranslucencyModulate | |
![]() |
uint8: 1 | bTranslucentSurfaceLighting | |
![]() |
uint8: 1 | bTwoSided | |
![]() |
uint8: 1 | bUsesAnisotropy | |
![]() |
uint8: 1 | bUsesComplexSpecialRenderPath | |
![]() |
uint8: 1 | bUsesDisplacement | |
![]() |
uint8: 1 | bUsesDistanceCullFade | |
![]() |
uint8: 1 | bUsesGlobalDistanceField | |
![]() |
uint8: 1 | bUsesPixelDepthOffset | |
![]() |
uint8: 1 | bUsesSceneColorCopy | |
![]() |
uint8: 1 | bUsesSceneDepth | |
![]() |
uint8: 1 | bUsesSingleLayerWaterMaterial | |
![]() |
uint8: 1 | bUsesSkyMaterial | |
![]() |
uint8: 1 | bUsesWorldPositionOffset | |
![]() |
uint8: 2 | CustomDepthStencilUsageMask | |
![]() |
uint64 | Raw | |
![]() |
uint16 | ShadingModelMask | |
![]() |
uint8 | StrataBSDFCountMask | |
![]() |
uint8 | StrataUintPerPixel |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | SetPrimitiveViewRelevance
(
FPrimitiveViewRelevance& OutViewRelevance |
Copies the material's relevance flags to a primitive's view relevance flags. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FMaterialRelevance & | operator|=
(
const FMaterialRelevance& B |
Bitwise OR operator. Sets any relevance bits which are present in either. |