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

#include <workbench_fx_dof.bsl.hh>

Public Member Functions

float2 get_random_vector (float2 frag_co, float offset) const

Public Attributes

sampler2D input_coc_tx
sampler2D half_res_color_tx
sampler2D noise_tx
float4 samples [dof_sample_count]

Detailed Description

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

Member Function Documentation

◆ get_random_vector()

float2 workbench::dof::Blur1::get_random_vector ( float2 frag_co,
float offset ) const
inline

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

References cos, fract(), M_PI, noise_tx, sin, sqrt, texelFetch(), float2::x, and float2::y.

Member Data Documentation

◆ half_res_color_tx

sampler2D workbench::dof::Blur1::half_res_color_tx

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

◆ input_coc_tx

sampler2D workbench::dof::Blur1::input_coc_tx

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

◆ noise_tx

sampler2D workbench::dof::Blur1::noise_tx

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

Referenced by get_random_vector().

◆ samples

float4 workbench::dof::Blur1::samples[dof_sample_count]

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


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