|
Blender V5.3
|
#include <eevee_depth_of_field_resolve.bsl.hh>
Public Member Functions | |
| float | slight_focus_coc_tile_get (float2 frag_coord, uint local_index) |
| float3 | dof_neighborhood_clamp (float2 frag_coord, float3 color, float center_coc, float weight) |
Definition at line 21 of file eevee_depth_of_field_resolve.bsl.hh.
|
inline |
Visit the 4 half-res texels around (and containing) the full-resolution texel. Here a diagram of a full-screen texel (f) in the bottom left corner of a half res texel. We sample the stable half-resolution texture at the 4 location denoted by (h). ┌───────┬───────┐ │ h │ h │ │ │ │ │ │ f │ ├───────┼───────┤ │ h │ h │ │ │ │ │ │ │ └───────┴───────┘
Definition at line 72 of file eevee_depth_of_field_resolve.bsl.hh.
References abs, clamp(), frag_coord, max, min, mix, saturate, colorspace::scene_linear_from_YCoCg(), square(), stable_color_tx, textureLod(), textureSize(), and colorspace::YCoCg_from_scene_linear().
|
inline |
Returns The max CoC in the Slight Focus range inside this compute tile.
Definition at line 44 of file eevee_depth_of_field_resolve.bsl.hh.
References abs, accumulator, atomicMax(), barrier(), clamp(), color_tx, depth_tx, eevee::dof::Accumulator::dof_buf, dof_coc_from_depth(), dof_max_slight_focus_radius, floatBitsToUint, frag_coord, max, quad_offsets, reverse_z::read(), shared_max_slight_focus_abs_coc, textureLod(), textureSize(), uintBitsToFloat, and views.
| Accumulator eevee::dof::resolve::Resources::accumulator |
Definition at line 22 of file eevee_depth_of_field_resolve.bsl.hh.
Referenced by slight_focus_coc_tile_get().
| sampler2D eevee::dof::resolve::Resources::color_bg_tx |
Definition at line 29 of file eevee_depth_of_field_resolve.bsl.hh.
| sampler2D eevee::dof::resolve::Resources::color_fg_tx |
Definition at line 30 of file eevee_depth_of_field_resolve.bsl.hh.
| sampler2D eevee::dof::resolve::Resources::color_hole_fill_tx |
Definition at line 31 of file eevee_depth_of_field_resolve.bsl.hh.
| sampler2D eevee::dof::resolve::Resources::color_tx |
Definition at line 28 of file eevee_depth_of_field_resolve.bsl.hh.
Referenced by slight_focus_coc_tile_get().
| sampler2DDepth eevee::dof::resolve::Resources::depth_tx |
Definition at line 27 of file eevee_depth_of_field_resolve.bsl.hh.
Referenced by slight_focus_coc_tile_get().
| const bool eevee::dof::resolve::Resources::do_debug_color |
Definition at line 25 of file eevee_depth_of_field_resolve.bsl.hh.
| image2D eevee::dof::resolve::Resources::out_color_img |
Definition at line 37 of file eevee_depth_of_field_resolve.bsl.hh.
| uint eevee::dof::resolve::Resources::shared_max_slight_focus_abs_coc |
Definition at line 39 of file eevee_depth_of_field_resolve.bsl.hh.
Referenced by slight_focus_coc_tile_get().
| sampler2D eevee::dof::resolve::Resources::stable_color_tx |
Definition at line 35 of file eevee_depth_of_field_resolve.bsl.hh.
Referenced by dof_neighborhood_clamp().
| draw::View eevee::dof::resolve::Resources::views |
Definition at line 23 of file eevee_depth_of_field_resolve.bsl.hh.
Referenced by slight_focus_coc_tile_get().
| sampler2D eevee::dof::resolve::Resources::weight_bg_tx |
Definition at line 32 of file eevee_depth_of_field_resolve.bsl.hh.
| sampler2D eevee::dof::resolve::Resources::weight_fg_tx |
Definition at line 33 of file eevee_depth_of_field_resolve.bsl.hh.
| sampler2D eevee::dof::resolve::Resources::weight_hole_fill_tx |
Definition at line 34 of file eevee_depth_of_field_resolve.bsl.hh.