|
Blender V5.3
|
Classes | |
| struct | Resources |
Functions | |
| void | comp_main (Resources &srt, Gather &gather, const Tiles &tiles, const uint3 global_id) |
Gather pass: Convolve foreground and background parts in separate passes.
Using the min&max CoC tile buffer, we select the best appropriate method to blur the scene color. A fast gather path is taken if there is not many CoC variation inside the tile.
We sample using an octaweb sampling pattern. We randomize the kernel center and each ring rotation to ensure maximum coverage.
Outputs:
| void eevee::dof::gather::comp_main | ( | Resources & | srt, |
| Gather & | gather, | ||
| const Tiles & | tiles, | ||
| const uint3 | global_id ) |
Definition at line 42 of file eevee_depth_of_field_gather.bsl.hh.
References CocTile::bg_max_coc, CocTile::bg_min_coc, CocTile::bg_min_intersectable_coc, comp_main(), eevee::dof::Accumulator::consts, CocTilePrediction::do_background, CocTilePrediction::do_foreground, dof_coc_tile_load(), dof_coc_tile_prediction_get(), eevee::dof::Accumulator::dof_do_density_change(), dof_do_fast_gather(), eevee::dof::Accumulator::dof_gather_accumulator(), CocTile::fg_max_coc, CocTile::fg_max_intersectable_coc, CocTile::fg_min_coc, global_invocation_id, imageStore(), eevee::dof::AccumulatorConstants::is_foreground, resource_table, and tiles.
Referenced by comp_main().