Navigation
API > API/Runtime > API/Runtime/Engine
Gives the depth of the current pixel being drawn for use in a material
| Name | UMaterialExpressionPixelDepth |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionPixelDepth.h |
| Include Path | #include "Materials/MaterialExpressionPixelDepth.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionPixelDepth : public UMaterialExpressionExternalCodeBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionExternalCodeBase → UMaterialExpressionPixelDepth
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionPixelDepth
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionPixelDepth.h |
Functions
Public
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionPixelDepth.h | |
virtual void GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionPixelDepth.h |