UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DiaphragmDOF Namespace Reference

Classes

struct  FBokehModel
 
struct  FPhysicalCocModel
 

Enumerations

enum class  EBokehShape { Circle , StraightBlades , RoundedBlades }
 

Functions

void SetCocModelParameters (FRDGBuilder &GraphBuilder, FDOFCocModelShaderParameters *OutParameters, const FPhysicalCocModel &CocModel, float CocRadiusBasis)
 
bool IsEnabled (const FViewInfo &View)
 
FVector4f CircleDofHalfCoc (const FViewInfo &View)
 
RENDERER_API bool IsSupported (const FStaticShaderPlatform ShaderPlatform)
 
RENDERER_API bool AddPasses (FRDGBuilder &GraphBuilder, const FSceneTextureParameters &SceneTextures, const FViewInfo &View, FRDGTextureRef InputSceneColor, const FTranslucencyPassResources &TranslucencyViewResources, FRDGTextureRef &OutputColor)
 

Enumeration Type Documentation

◆ EBokehShape

Enumerator
Circle 
StraightBlades 
RoundedBlades 

Function Documentation

◆ AddPasses()

bool DiaphragmDOF::AddPasses ( FRDGBuilder GraphBuilder,
const FSceneTextureParameters SceneTextures,
const FViewInfo View,
FRDGTextureRef  InputSceneColor,
const FTranslucencyPassResources TranslucencyViewResources,
FRDGTextureRef OutputColor 
)

Wire all DOF's passes according to view settings and cvars to convolve the scene color.

Which layer to gather.

Configuration of the pass.

Postfilter method to apply on this gather pass.

Bokeh simulation to do.

Number of rings.

Whether there is a scattering pass.

◆ CircleDofHalfCoc()

FVector4f DiaphragmDOF::CircleDofHalfCoc ( const FViewInfo View)

◆ IsEnabled()

bool DiaphragmDOF::IsEnabled ( const FViewInfo View)

◆ IsSupported()

bool DiaphragmDOF::IsSupported ( const FStaticShaderPlatform  ShaderPlatform)

Returns whether DOF is supported.

◆ SetCocModelParameters()

void DiaphragmDOF::SetCocModelParameters ( FRDGBuilder GraphBuilder,
FDOFCocModelShaderParameters OutParameters,
const FPhysicalCocModel CocModel,
float  CocRadiusBasis 
)