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
)

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