dof_coc.computeShader
- README.md806 B
- bindings.yaml323 B
- shader.wgsl3.2 KB
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_commondof_tile
Bindings
| name | kind |
|---|---|
scene_depth | texture_depth |
frame_cam | buffer |
dof_params | buffer |
coc_out | storage2d (r32f) |
tile_out | storage2d (rgba32f) |