Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionDepthFade
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
| Type | Name | Description | |
|---|---|---|---|
| FExpressionInput | FadeDistance | World space distance over which the fade should take place. | |
| float | FadeDistanceDefault | World space distance over which the fade should take place. | |
| FExpressionInput | InOpacity | Input opacity which will be scaled by the result of the fade. | |
| float | OpacityDefault | Opacity which will be scaled by the result of the fade. This is used when InOpacity is unconnected. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionDepthFade
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| FName | GetInputName
(
int32 InputIndex |