|
Blender V5.3
|
Classes | |
| struct | DofSample |
| struct | DofNeighborhoodMinMax |
| struct | Resources |
Functions | |
| float | luma_weight (float luma) |
| float | bilateral_weight (float reference_coc, float sample_coc) |
| DofSample | amend_history (DofNeighborhoodMinMax bbox, DofSample history, DofSample src) |
| void | comp_main (Resources &srt, const uint3 global_id, const uint3 local_id) |
Temporal Stabilization of the Depth of field input. Corresponds to the TAA pass in the paper. We actually duplicate the TAA logic but with a few changes:
This is and adaption of the code found in eevee_film_lib.glsl.
Inputs:
| DofSample eevee::dof::setup::stabilize::amend_history | ( | DofNeighborhoodMinMax | bbox, |
| DofSample | history, | ||
| DofSample | src ) |
Definition at line 395 of file eevee_depth_of_field_setup.bsl.hh.
References amend_history(), clamp(), eevee::dof::setup::stabilize::DofSample::coc, eevee::dof::setup::stabilize::DofSample::color, line_aabb_clipping_dist(), eevee::dof::setup::stabilize::DofNeighborhoodMinMax::max, eevee::dof::setup::stabilize::DofNeighborhoodMinMax::min, and saturate.
Referenced by amend_history(), and comp_main().
Definition at line 116 of file eevee_depth_of_field_setup.bsl.hh.
References abs, bilateral_weight(), max, and saturate.
Referenced by bilateral_weight(), and eevee::dof::setup::stabilize::Resources::spatial_filtering().
| void eevee::dof::setup::stabilize::comp_main | ( | Resources & | srt, |
| const uint3 | global_id, | ||
| const uint3 | local_id ) |
Naming convention is taken from the film implementation. SRC is incoming new data. DST is history data.
Definition at line 417 of file eevee_depth_of_field_setup.bsl.hh.
References amend_history(), clamp(), eevee::dof::setup::stabilize::DofSample::coc, eevee::dof::setup::stabilize::DofSample::color, comp_main(), global_invocation_id, imageStore(), length(), local_invocation_id, luma_weight(), eevee::dof::setup::stabilize::DofNeighborhoodMinMax::max, eevee::dof::setup::stabilize::DofNeighborhoodMinMax::min, resource_table, colorspace::scene_linear_from_YCoCg(), and float4::x.
Referenced by comp_main().
Definition at line 108 of file eevee_depth_of_field_setup.bsl.hh.
References luma_weight().
Referenced by comp_main(), luma_weight(), and eevee::dof::setup::stabilize::Resources::spatial_filtering().