Navigation
API > API/Runtime > API/Runtime/Engine
Scales Opacity by a Linear fade based on SceneDepth, from 0 at PixelDepth to 1 at FadeDistance
| Name | UMaterialExpressionDepthFade |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionDepthFade.h |
| Include Path | #include "Materials/MaterialExpressionDepthFade.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object)
class UMaterialExpressionDepthFade : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionDepthFade
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionDepthFade
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionDepthFade.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FadeDistance | FExpressionInput | World space distance over which the fade should take place. | Materials/MaterialExpressionDepthFade.h |
|
| FadeDistanceDefault | float | World space distance over which the fade should take place. | Materials/MaterialExpressionDepthFade.h |
|
| InOpacity | FExpressionInput | Input opacity which will be scaled by the result of the fade. | Materials/MaterialExpressionDepthFade.h |
|
| OpacityDefault | float | Opacity which will be scaled by the result of the fade. This is used when InOpacity is unconnected. | Materials/MaterialExpressionDepthFade.h |
|
Functions
Public
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Build
(
MIR::FEmitter& Emitter |
Builds this expression's material IR. | Materials/MaterialExpressionDepthFade.h | |
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionDepthFade.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionDepthFade.h | ||
virtual FName GetInputName
(
int32 InputIndex |
Materials/MaterialExpressionDepthFade.h |