asc_dofmix.computeShader
- .metadata71 B
- README.md680 B
- bindings.yaml260 B
- shader.wgsl2.7 KB
README.md
asc_dofmix
Blends asc_gather's half-resolution bokeh back over the scene at full
resolution, weighted by the full-resolution circle of confusion, so a pixel that
is in focus keeps its own sharp sample while a defocused one takes the blur. The
half-res image is read bilinearly by hand — textureLoad does not filter, and
nearest-sampling an upscaled bokeh disc reads as compression.
Bindings
| name | kind |
|---|---|
scene_color | texture2d |
coc_map | texture2d — asc_coc's full-res output |
dof_blur | texture2d — asc_gather's half-res output |
lens_params | buffer — asc_lens_params |
mix_out | storage2d (rgba8) |