rcas.computeShader
- README.md923 B
- bindings.yaml195 B
- shader.wgsl2.5 KB
This package holds more than this page lists. See all of its files in its world.
README.md
rcas
Robust contrast-adaptive sharpening of the shown picture, after the temporal stage, on display-referred code values. Each pixel is recombined with its four direct neighbours through a negative outer lobe whose strength is limited per pixel so the result stays inside [0, 1], scaled by the sharpness, and then held inside the range the pixel and its neighbours span: an edge gets steeper and gains no halo on either side.
The pass writes only what is shown. The temporal accumulation never reads it, so the sharpening is applied once per frame and does not compound.
Bindings
| name | kind |
|---|---|
scene_color | texture2d |
rcas_params | buffer |
rcas_out | storage2d (rgba16f) |
rcas_params[0].x is the sharpness in [0, 1], packed by
@builtin::systems.antiAliasing.temporalAntiAliasing or
@builtin::systems.temporalUpscale.temporalUpscale, whichever reconstruction
runs it.