|
Blender V5.3
|
Functions | |
| void | comp_main (Gather &gather, const Tiles &tiles, const uint3 global_id) |
Hole-fill pass: Gather background parts where foreground is present.
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.
| void eevee::dof::hole_fill::comp_main | ( | Gather & | gather, |
| const Tiles & | tiles, | ||
| const uint3 | global_id ) |
Definition at line 146 of file eevee_depth_of_field_gather.bsl.hh.
References comp_main(), eevee::dof::Accumulator::consts, CocTilePrediction::do_hole_fill, dof_coc_tile_load(), dof_coc_tile_prediction_get(), dof_do_fast_gather(), eevee::dof::Accumulator::dof_gather_accumulator(), CocTile::fg_max_coc, CocTile::fg_min_coc, global_invocation_id, imageStore(), eevee::dof::AccumulatorConstants::is_foreground, resource_table, and tiles.
Referenced by comp_main().