Blender V5.3
workbench::dof::DepthOfField Struct Reference

#include <workbench_fx_dof.bsl.hh>

Public Member Functions

template<typename T>
T calculate_coc (T z_depth)

Public Attributes

float2 inverted_viewport_size
float2 near_far
float3 dof_params
float noise_offset

Detailed Description

Definition at line 47 of file workbench_fx_dof.bsl.hh.

Member Function Documentation

◆ calculate_coc()

template<typename T>
template float4 workbench::dof::DepthOfField::calculate_coc< float4 > ( T z_depth)
inline

Definition at line 54 of file workbench_fx_dof.bsl.hh.

References distance(), dof_params, T, float3::x, float3::y, and float3::z.

Member Data Documentation

◆ dof_params

float3 workbench::dof::DepthOfField::dof_params

Definition at line 50 of file workbench_fx_dof.bsl.hh.

Referenced by calculate_coc().

◆ inverted_viewport_size

float2 workbench::dof::DepthOfField::inverted_viewport_size

Definition at line 48 of file workbench_fx_dof.bsl.hh.

◆ near_far

float2 workbench::dof::DepthOfField::near_far

Definition at line 49 of file workbench_fx_dof.bsl.hh.

◆ noise_offset

float workbench::dof::DepthOfField::noise_offset

Definition at line 51 of file workbench_fx_dof.bsl.hh.


The documentation for this struct was generated from the following file: