UMaterialExpressionSceneDepth

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "Materials/MaterialExpressionSceneDepth.h"

Syntax

class UMaterialExpressionSceneDepth : public UMaterialExpression

Variables

Name Description

Public variable

FVector2D

 

ConstInput

Only used if Input is not hooked up

Public variable

FExpressionInpu ...

 

Input

Based on the input mode the input will be treated as either: UV coordinates to apply to the scene depth lookup or an offset to apply to the scene depth lookup, in a 2d fraction of the screen.

Public variable

TEnumAsByte < en...

 

InputMode

Coordinates - UV coordinates to apply to the scene depth lookup.

Constructors

Name Description

Public function

UMaterialExpressionSceneDepth

(
    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
)

Overridden from UObject

Name Description

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Deprecated Variables

Name Description

Public variable

FExpressionInpu ...

 

Coordinates_DEPRECATED

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