·
computeshader · drop-in viewer
asc_dofmix.computeShader
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 — `t…
by·posted 3mo ago
What it does
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) |
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.