UMaterialExpressionLandscapePhysicalMaterialOutput

Custom output node to write out physical material weights.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/Materials/MaterialExpressionLandscapePhysicalMaterialOutput.h

Include

#include "Materials/MaterialExpressionLandscapePhysicalMaterialOutput.h"

Syntax

class UMaterialExpressionLandscapePhysicalMaterialOutput : public UMaterialExpressionCustomOutput

Remarks

Custom output node to write out physical material weights. This can be used to generate the dominant physical material for each point on a landscape.

that the use of a material output node to generate this information is optional and when a node of this type is not present we fall back on a CPU path which analyzes landscape layer data.

Variables

Name Description

Public variable

TArray< FPhysic...

 

Inputs

Array of physical material inputs.

Constructors

Name Description

Public function

UMaterialExpressionLandscapePhysicalMaterialOutput

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UMaterialExpressionCustomOutput

Name Description

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).

Public function Virtual

FExpressionI...

 

GetInput

(
    int32 InputIndex
)

Public function Virtual Const

FName

 

GetInputName

(
    int32 InputIndex
)

Public function Virtual

const TArray...

 

GetInputs()

Public function Virtual

uint32

 

GetInputType

(
    int32 InputIndex
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally