UMaterialExpressionDepthFade

Scales Opacity by a Linear fade based on SceneDepth, from 0 at PixelDepth to 1 at FadeDistance

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "Materials/MaterialExpressionDepthFade.h"

Syntax

class UMaterialExpressionDepthFade : public UMaterialExpression

Remarks

Scales Opacity by a Linear fade based on SceneDepth, from 0 at PixelDepth to 1 at FadeDistance

Variables

Name Description

Public variable

FExpressionInpu...

 

FadeDistance

World space distance over which the fade should take place.

Public variable

float

 

FadeDistanceDefault

World space distance over which the fade should take place.

Public variable

FExpressionInpu...

 

InOpacity

Input opacity which will be scaled by the result of the fade.

Public variable

float

 

OpacityDefault

Opacity which will be scaled by the result of the fade. This is used when InOpacity is unconnected.

Constructors

Name Description

Public function

UMaterialExpressionDepthFade

(
    const FObjectInitializer& ObjectIn...
)

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 Const

FName

 

GetInputName

(
    int32 InputIndex
)

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