UMaterialExpressionVolumetricAdvancedMaterialOutput

Material output expression for writing advanced volumetric material properties.

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UMaterialExpression

UMaterialExpressionCustomOutput

UMaterialExpressionVolumetricAdvancedMaterialOutput

References

Module

Engine

Header

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

Include

#include "Materials/MaterialExpressionVolumetricAdvancedMaterialOutput.h"

Syntax

class UMaterialExpressionVolumetricAdvancedMaterialOutput : public UMaterialExpressionCustomOutput

Remarks

Material output expression for writing advanced volumetric material properties.

Variables

Name Description

Public variable

bool

 

bGrayScaleMaterial

Set this for the material to only be considered grey scale, only using the R chanel of the input parameters internally.

Public variable

bool

 

bGroundContribution

Sample the shadowed lighting contribution from the ground onto the medium (single scattering).

Public variable

bool

 

bRayMarchVolumeShadow

Disable this to use the cloud shadow map instead of secondary raymarching.

Public variable

FExpressionInpu...

 

ConservativeDensity

This is a 3-components float vector.

Public variable

float

 

ConstMultiScatteringContribution

Only used if MultiScatteringContribution is not hooked up.

Public variable

float

 

ConstMultiScatteringEccentricity

Only used if MultiScatteringEccentricity is not hooked up.

Public variable

float

 

ConstMultiScatteringOcclusion

Only used if MultiScatteringOcclusion is not hooked up.

Public variable

float

 

ConstPhaseBlend

Only used if PhaseBlend is not hooked up.

Public variable

float

 

ConstPhaseG

Only used if PhaseG is not hooked up.

Public variable

float

 

ConstPhaseG2

Only used if PhaseG2 is not hooked up.

Public variable

uint32

 

MultiScatteringApproximationOctaveCount

How many octave to use for the multiple-scattering approximation.

Public variable

FExpressionInpu...

 

MultiScatteringContribution

Multi-scattering approximation: represents how much contribution each successive octave will add.

Public variable

FExpressionInpu...

 

MultiScatteringEccentricity

Multi-scattering approximation: represents how much the phase will become isotropic for each successive octave.

Public variable

FExpressionInpu...

 

MultiScatteringOcclusion

Multi-scattering approximation: represents how much occlusion will be reduced for each successive octave.

Public variable

bool

 

PerSamplePhaseEvaluation

Set this to true to force the phase function to be evaluated per sample, instead once per pixel (globally).

Public variable

FExpressionInpu...

 

PhaseBlend

Lerp factor when blending the two phase functions parameterized by G and G2. Valid range is [0,1].

Public variable

FExpressionInpu...

 

PhaseG

Parameter 'g' input to the phase function describing how much forward(g<0) or backward (g>0) light scatter around.

Public variable

FExpressionInpu...

 

PhaseG2

Parameter 'g' input to the second phase function describing how much forward(g<0) or backward (g>0) light scatter around.

Constructors

Name Description

Public function

UMaterialExpressionVolumetricAdvancedMaterialOutput

(
    const FObjectInitializer& ObjectIn...
)

Functions

Overridden from UMaterialExpressionCustomOutput

Name Description

Public function Virtual Const

FString

 

GetDisplayName()

Public function Virtual Const

FString

 

GetFunctionName()

Public function Virtual Const

int32

 

GetNumOutputs()

Override to enable multiple outputs.

Overridden from UMaterialExpression

Name Description

Public function Virtual

int32

 

Compile

(
    FMaterialCompiler* Compiler,
    int32 OutputIndex
)

Create the new shader code chunk needed for the Abs expression

Public function Virtual Const

void

 

GetCaption

(
    TArray< FString >& OutCaptions
)

Returns the text to display on the material expression (in the material editor).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss