|
Blender V5.3
|
#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 ¢er_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 |
Definition at line 82 of file eevee_depth_of_field_accumulator.bsl.hh.
|
inline |
Definition at line 397 of file eevee_depth_of_field_accumulator.bsl.hh.
References float, gather_ring_count, radius_downscale_factor, and unit_ring_radius.
Referenced by eevee::dof::gather::comp_main(), and dof_gather_accumulator().
|
inline |
Definition at line 110 of file eevee_depth_of_field_accumulator.bsl.hh.
References saturate.
Referenced by dof_gather_accumulate_center_sample(), and dof_gather_accumulate_sample_pair().
|
inline |
Definition at line 281 of file eevee_depth_of_field_accumulator.bsl.hh.
References abs, eevee::dof::DofGatherData::coc, eevee::dof::DofGatherData::coc_sqr, eevee::dof::DofGatherData::color, dof_gather_accum_weight(), dof_gather_accumulate_sample(), dof_gather_accumulate_sample_ring(), dof_gather_amend_weight(), dof_gather_total_sample_count(), dof_layer_threshold, dof_layer_weight(), dof_sample_weight(), DOF_SLIGHT_FOCUS_DENSITY, float, eevee::dof::DofGatherData::layer_opacity, saturate, square(), eevee::dof::DofGatherData::transparency, and eevee::dof::DofGatherData::weight.
Referenced by dof_gather_accumulator(), and dof_slight_focus_gather().
|
inline |
Definition at line 348 of file eevee_depth_of_field_accumulator.bsl.hh.
References abs, eevee::dof::DofGatherData::coc, eevee::dof::DofGatherData::coc_sqr, eevee::dof::DofGatherData::color, consts, float, eevee::dof::AccumulatorConstants::is_foreground, eevee::dof::DofGatherData::layer_opacity, safe_rcp(), eevee::dof::DofGatherData::transparency, and eevee::dof::DofGatherData::weight.
Referenced by dof_gather_accumulator(), and dof_slight_focus_gather().
|
inline |
Definition at line 127 of file eevee_depth_of_field_accumulator.bsl.hh.
References eevee::dof::DofGatherData::coc, eevee::dof::DofGatherData::coc_sqr, eevee::dof::DofGatherData::color, and eevee::dof::DofGatherData::weight.
Referenced by dof_gather_accumulate_center_sample(), and dof_gather_accumulate_sample_pair().
|
inline |
Definition at line 137 of file eevee_depth_of_field_accumulator.bsl.hh.
References eevee::dof::DofGatherData::coc, consts, dof_gather_accum_weight(), dof_gather_accumulate_sample(), dof_intersection_weight(), dof_layer_offset, dof_layer_threshold, dof_layer_weight(), dof_sample_weight(), eevee::dof::AccumulatorConstants::is_resolve, eevee::dof::DofGatherData::layer_opacity, saturate, and eevee::dof::DofGatherData::transparency.
Referenced by dof_gather_accumulator(), and dof_slight_focus_gather().
|
inline |
Definition at line 197 of file eevee_depth_of_field_accumulator.bsl.hh.
References eevee::dof::DofGatherData::coc, eevee::dof::DofGatherData::coc_sqr, eevee::dof::DofGatherData::color, consts, float, eevee::dof::AccumulatorConstants::is_resolve, no_gather_occlusion, saturate, eevee::dof::DofGatherData::transparency, and eevee::dof::DofGatherData::weight.
Referenced by dof_gather_accumulate_center_sample(), dof_gather_accumulator(), and dof_slight_focus_gather().
|
inline |
Definition at line 435 of file eevee_depth_of_field_accumulator.bsl.hh.
References average(), bokeh_lut_tx, change_density_at_ring, eevee::dof::DofGatherData::coc, coc_radius_error, eevee::dof::DofGatherData::color, consts, cos, debug_gather_perf, debug_scatter_perf, eevee::dof::DofGatherData::dist, dof_buf, dof_do_density_change(), dof_gather_accumulate_center_sample(), dof_gather_accumulate_resolve(), dof_gather_accumulate_sample_pair(), dof_gather_accumulate_sample_ring(), dof_gather_amend_weight(), dof_gather_init(), dof_gather_total_sample_count_with_density_change(), dof_load_gather_coc(), float, fract(), frag_coord, from_rotation(), gather_density_change_ring, gather_max_density_change, gather_ring_count, gather_ring_density, random::interleaved_gradient(), eevee::dof::AccumulatorConstants::is_foreground, M_PI, neon_gradient(), no_gather_random, noise(), radius_downscale_factor, eevee::Sampling::rng_2D_get(), sampling, saturate, sin, square(), static_branch, texture(), textureLod(), unit_ring_radius, unit_sample_radius, eevee::dof::AccumulatorConstants::use_lut, float2::x, and float2::y.
Referenced by eevee::dof::gather::comp_main(), and eevee::dof::hole_fill::comp_main().
|
inline |
Definition at line 119 of file eevee_depth_of_field_accumulator.bsl.hh.
References eevee::dof::DofGatherData::coc, eevee::dof::DofGatherData::coc_sqr, eevee::dof::DofGatherData::color, and eevee::dof::DofGatherData::weight.
Referenced by dof_gather_accumulate_center_sample(), and dof_gather_accumulator().
|
inline |
Definition at line 409 of file eevee_depth_of_field_accumulator.bsl.hh.
References consts, dof_buf, floor, frag_coord, log2, max, no_gather_mipmaps, noise(), pow, sample_disk(), unit_sample_radius, and eevee::dof::AccumulatorConstants::use_lut.
Referenced by dof_gather_accumulator().
|
inline |
Definition at line 276 of file eevee_depth_of_field_accumulator.bsl.hh.
Referenced by dof_gather_accumulate_center_sample(), and dof_gather_total_sample_count_with_density_change().
|
inline |
Definition at line 335 of file eevee_depth_of_field_accumulator.bsl.hh.
References dof_gather_total_sample_count(), and gather_density_change_ring.
Referenced by dof_gather_accumulator().
|
inline |
Definition at line 97 of file eevee_depth_of_field_accumulator.bsl.hh.
References abs, no_smooth_intersection, saturate, and step.
Referenced by dof_gather_accumulate_sample_pair().
|
inline |
Definition at line 383 of file eevee_depth_of_field_accumulator.bsl.hh.
References textureLod().
Referenced by dof_gather_accumulator().
|
inline |
Definition at line 615 of file eevee_depth_of_field_accumulator.bsl.hh.
References abs, clamp(), eevee::dof::DofGatherData::coc, eevee::dof::DofGatherData::color, consts, eevee::dof::DofGatherData::dist, dof_buf, dof_coc_from_depth(), dof_gather_accumulate_center_sample(), dof_gather_accumulate_resolve(), dof_gather_accumulate_sample_pair(), dof_gather_accumulate_sample_ring(), dof_layer_threshold, dof_max_slight_focus_radius, float, fract(), frag_coord, random::hammersley_2d(), random::interleaved_gradient(), length(), no_gather_random, noise(), reverse_z::read(), eevee::Sampling::rng_2D_get(), round, colorspace::safe_color(), sample_disk(), sampling, saturate, square(), texelFetch(), textureLod(), textureSize(), eevee::dof::AccumulatorConstants::use_lut, views, float2::x, and float2::y.
Referenced by eevee::dof::resolve::comp_main().
| sampler2D eevee::dof::Accumulator::bokeh_lut_tx |
Definition at line 85 of file eevee_depth_of_field_accumulator.bsl.hh.
Referenced by eevee::dof::resolve::comp_main(), and dof_gather_accumulator().
| AccumulatorConstants eevee::dof::Accumulator::consts |
Definition at line 83 of file eevee_depth_of_field_accumulator.bsl.hh.
Referenced by eevee::dof::gather::comp_main(), eevee::dof::hole_fill::comp_main(), eevee::dof::resolve::comp_main(), dof_gather_accumulate_resolve(), dof_gather_accumulate_sample_pair(), dof_gather_accumulate_sample_ring(), dof_gather_accumulator(), dof_gather_init(), and dof_slight_focus_gather().
| const DepthOfFieldData& eevee::dof::Accumulator::dof_buf |
Definition at line 87 of file eevee_depth_of_field_accumulator.bsl.hh.
Referenced by eevee::dof::resolve::comp_main(), dof_gather_accumulator(), dof_gather_init(), dof_slight_focus_gather(), and eevee::dof::resolve::Resources::slight_focus_coc_tile_get().
| Sampling eevee::dof::Accumulator::sampling |
Definition at line 89 of file eevee_depth_of_field_accumulator.bsl.hh.
Referenced by dof_gather_accumulator(), and dof_slight_focus_gather().
| 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().