Blender V5.3
eevee::dof::Accumulator Struct Reference

#include <eevee_depth_of_field_accumulator.bsl.hh>

Public Member Functions

Gather common.
float dof_intersection_weight (float coc, float distance_from_center, float intersection_multiplier)
float dof_gather_accum_weight (float coc, float bordering_radius, bool first_ring)
void dof_gather_amend_weight (DofGatherData &sample_data, float weight)
void dof_gather_accumulate_sample (DofGatherData sample_data, float weight, DofGatherData &accum_data)
void dof_gather_accumulate_sample_pair (DofGatherData pair_data[2], float bordering_radius, float intersection_multiplier, bool first_ring, const bool do_fast_gather, const bool foreground, DofGatherData &ring_data, DofGatherData &accum_data)
void dof_gather_accumulate_sample_ring (DofGatherData ring_data, int sample_count, bool first_ring, const bool do_fast_gather, const bool reversed_occlusion, DofGatherData &accum_data)
int dof_gather_total_sample_count (const int ring_count, const int ring_density)
void dof_gather_accumulate_center_sample (DofGatherData center_data, float bordering_radius, int i_radius, const bool do_fast_gather, const bool foreground, const bool resolve, DofGatherData &accum_data)
int dof_gather_total_sample_count_with_density_change (const int ring_count, const int ring_density, int density_change)
void dof_gather_accumulate_resolve (int total_sample_count, DofGatherData accum_data, float4 &out_col, float &out_weight, float2 &out_occlusion)
float dof_load_gather_coc (sampler2D gather_input_coc_tx, float2 uv, float lod)
Common Gather accumulator.
bool dof_do_density_change (float base_radius, float min_intersectable_radius)
void dof_gather_init (float2 frag_coord, float base_radius, float2 noise, float2 &center_co, float &lod, float &intersection_multiplier)
void dof_gather_accumulator (float2 frag_coord, sampler2D color_tx, sampler2D color_bilinear_tx, sampler2D coc_tx, float base_radius, float min_intersectable_radius, const bool do_fast_gather, const bool do_density_change, float4 &out_color, float &out_weight, float2 &out_occlusion)
Slight focus accumulator.

The full pixel neighborhood is gathered.

void dof_slight_focus_gather (float2 frag_coord, sampler2DDepth depth_tx, sampler2D color_tx, sampler2D bkh_lut_tx, float radius, float4 &out_color, float &out_weight, float &out_center_coc)

Public Attributes

AccumulatorConstants consts
sampler2D bokeh_lut_tx
const DepthOfFieldData & dof_buf
Sampling sampling
draw::View views

Detailed Description

Definition at line 82 of file eevee_depth_of_field_accumulator.bsl.hh.

Member Function Documentation

◆ dof_do_density_change()

bool eevee::dof::Accumulator::dof_do_density_change ( float base_radius,
float min_intersectable_radius )
inline

◆ dof_gather_accum_weight()

float eevee::dof::Accumulator::dof_gather_accum_weight ( float coc,
float bordering_radius,
bool first_ring )
inline

◆ dof_gather_accumulate_center_sample()

◆ dof_gather_accumulate_resolve()

◆ dof_gather_accumulate_sample()

void eevee::dof::Accumulator::dof_gather_accumulate_sample ( DofGatherData sample_data,
float weight,
DofGatherData & accum_data )
inline

◆ dof_gather_accumulate_sample_pair()

void eevee::dof::Accumulator::dof_gather_accumulate_sample_pair ( DofGatherData pair_data[2],
float bordering_radius,
float intersection_multiplier,
bool first_ring,
const bool do_fast_gather,
const bool foreground,
DofGatherData & ring_data,
DofGatherData & accum_data )
inline

◆ dof_gather_accumulate_sample_ring()

void eevee::dof::Accumulator::dof_gather_accumulate_sample_ring ( DofGatherData ring_data,
int sample_count,
bool first_ring,
const bool do_fast_gather,
const bool reversed_occlusion,
DofGatherData & accum_data )
inline

◆ dof_gather_accumulator()

void eevee::dof::Accumulator::dof_gather_accumulator ( float2 frag_coord,
sampler2D color_tx,
sampler2D color_bilinear_tx,
sampler2D coc_tx,
float base_radius,
float min_intersectable_radius,
const bool do_fast_gather,
const bool do_density_change,
float4 & out_color,
float & out_weight,
float2 & out_occlusion )
inline

◆ dof_gather_amend_weight()

◆ dof_gather_init()

void eevee::dof::Accumulator::dof_gather_init ( float2 frag_coord,
float base_radius,
float2 noise,
float2 & center_co,
float & lod,
float & intersection_multiplier )
inline

◆ dof_gather_total_sample_count()

int eevee::dof::Accumulator::dof_gather_total_sample_count ( const int ring_count,
const int ring_density )
inline

◆ dof_gather_total_sample_count_with_density_change()

int eevee::dof::Accumulator::dof_gather_total_sample_count_with_density_change ( const int ring_count,
const int ring_density,
int density_change )
inline

◆ dof_intersection_weight()

float eevee::dof::Accumulator::dof_intersection_weight ( float coc,
float distance_from_center,
float intersection_multiplier )
inline

◆ dof_load_gather_coc()

float eevee::dof::Accumulator::dof_load_gather_coc ( sampler2D gather_input_coc_tx,
float2 uv,
float lod )
inline

Definition at line 383 of file eevee_depth_of_field_accumulator.bsl.hh.

References textureLod().

Referenced by dof_gather_accumulator().

◆ dof_slight_focus_gather()

Member Data Documentation

◆ bokeh_lut_tx

sampler2D eevee::dof::Accumulator::bokeh_lut_tx

◆ consts

◆ dof_buf

◆ sampling

Sampling eevee::dof::Accumulator::sampling

◆ views

draw::View eevee::dof::Accumulator::views

Definition at line 90 of file eevee_depth_of_field_accumulator.bsl.hh.

Referenced by dof_slight_focus_gather().


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