Log inGet started
Package

dof_gather.computeShader

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

dof_gather

Gathers colour over each pixel's circle of confusion, so an out-of-focus point becomes a disc whose radius is the one dof_coc states. The taps spread over the widest circle that can land on the pixel: the widest near-field circle that can reach its tile (neighbor_max), and the widest far-field one out to twice the pixel's own radius, the farthest a circle behind the focal plane covers it from. Where no wider near-field circle reaches the pixel, its own disc takes the full tap count and a ring of half as many taps covers the rest of that radius, each ring tap weighted by the share of the disc it stands for. The result is the gather itself: an in-focus pixel keeps its own colour by the weight of its tight circle.

Includes

  • dof_common
  • dof_tile

Bindings

namekind
scene_colortexture2d
coc_maptexture2d
neighbor_maxtexture2d
dof_paramsbuffer
dof_outstorage2d (rgba16f)