Log inGet started
Package

dof_coc.computeShader

Newest version

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

README.md

dof_coc

Computes the circle of confusion per pixel: how far out of focus it is, as the signed radius of the thin-lens disc in pixels (negative in front of the focal plane), clamped to maxCoCPixels. The sky, at the far plane, takes the circle of a point at infinity.

Each workgroup covers one 16x16 tile and also writes the widest circle of each field in it: tile_out carries the widest radius in front of the focal plane in r and the widest behind it in g. The last tile of a row or column takes the pixels past the last whole tile as well.

Includes

  • dof_common
  • dof_tile

Bindings

namekind
scene_depthtexture_depth
frame_cambuffer
dof_paramsbuffer
coc_outstorage2d (r32f)
tile_outstorage2d (rgba32f)