unreal.DepthOfFieldFunctionValue

class unreal.DepthOfFieldFunctionValue

Bases: EnumBase

Note: The index is used to map the enum to different code in the shader

C++ Source:

  • Module: Engine

  • File: MaterialExpressionDepthOfFieldFunction.h

TDOF_CIRCLE_OF_CONFUSION_RADIUS: DepthOfFieldFunctionValue

in pixels, only works for CircleDOF, use Abs for the actual radius as the sign of the value indicates near out of focus, positive indicates far out of focus

Type:

3

TDOF_FAR_MASK: DepthOfFieldFunctionValue

in Focus or Near .. 1:Far.

Type:

2

Type:

0

TDOF_NEAR_AND_FAR_MASK: DepthOfFieldFunctionValue

in Focus .. 1:Near or Far.

Type:

0

Type:

0

TDOF_NEAR_MASK: DepthOfFieldFunctionValue

in Focus or Far .. 1:Near.

Type:

1

Type:

0