FMaterialRelevance

The class is only storing bits, initialized to 0 and has an |= operator to provide a combined set of multiple materials (component / mesh)

Choose your operating system:

Windows

macOS

Linux

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

Name Description

Public variable

union FMaterial...

 

@1752

Bits that express which EMaterialShadingModel are used

Public variable

uint8: 1

 

bDecal

Public variable

uint8: 1

 

bDisableDepthTest

Public variable

uint8: 1

 

bDistortion

Public variable

uint8: 1

 

bHairStrands

Public variable

uint8: 1

 

bHasVolumeMaterialDomain

Public variable

uint8: 1

 

bMasked

Public variable

uint8: 1

 

bNormalTranslucency

Public variable

uint8: 1

 

bOpaque

Public variable

uint8: 1

 

bOutputsTranslucentVelocity

Public variable

uint8: 1

 

bPostMotionBlurTranslucency

Public variable

uint8: 1

 

bSeparateTranslucency

Public variable

uint8: 1

 

bSeparateTranslucencyModulate

Public variable

uint8: 1

 

bTranslucentSurfaceLighting

Public variable

uint8: 1

 

bUsesAnisotropy

Public variable

uint8: 1

 

bUsesCustomDepthStencil

Public variable

uint8: 1

 

bUsesDistanceCullFade

Public variable

uint8: 1

 

bUsesGlobalDistanceField

Public variable

uint8: 1

 

bUsesSceneColorCopy

Public variable

uint8: 1

 

bUsesSceneDepth

Public variable

uint8: 1

 

bUsesSingleLayerWaterMaterial

Public variable

uint8: 1

 

bUsesSkyMaterial

Public variable

uint8: 1

 

bUsesWorldPositionOffset

Public variable

uint64

 

Raw

Public variable

uint16

 

ShadingModelMask

Constructors

Name Description

Public function

FMaterialRelevance()

Default constructor

Functions

Name Description

Public function Const

void

 

SetPrimitiveViewRelevance

(
    FPrimitiveViewRelevance& OutViewRe...
)

Copies the material's relevance flags to a primitive's view relevance flags.

Operators

Name Description

Public function

FMaterialRel...

 

operator|=

(
    const FMaterialRelevance& B
)

Bitwise OR operator. Sets any relevance bits which are present in either.