FMaterialRelevance

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

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInterface.h

Include

#include "Materials/MaterialInterface.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

uint8: 1

 

bDecal

Public variable

uint8: 1

 

bDisableDepthTest

Public variable

uint8: 1

 

bDisableOffscreenRendering

Public variable

uint8: 1

 

bDistortion

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

 

bSeparateTranslucency

Public variable

uint8: 1

 

bTranslucentSurfaceLighting

Public variable

uint8: 1

 

bUsesDistanceCullFade

Public variable

uint8: 1

 

bUsesGlobalDistanceField

Public variable

uint8: 1

 

bUsesSceneColorCopy

Public variable

uint8: 1

 

bUsesSceneDepth

Public variable

uint8: 1

 

bUsesWorldPositionOffset

Public variable

uint16

 

ShadingModelMask

Bits that express which EMaterialShadingModel are used

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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback