Builtin Library
- ..
- README.md685 B
- bindings.yaml360 B
- shader.wgsl2.2 KB
README.md
cloud_shadow_filter
The cloud layer's shadow map as the passes reading it sample it: the lines the view being drawn wrote, drawn smooth between them at twice their density. Each texel is the cubic B-spline through the four by four lines around it, taken as four bilinear reads. The share of the sun crossing the cloud bends smoothly from one line to the next, so a cloud's shadow fades over a line or so at its edge rather than following the map's grid, and the bilinear read a reader makes of this map runs between texels half a line apart.
Bindings
| name | kind |
|---|---|
map_in | texture2d |
map_smp | sampler |
shadow_out | storage2d (rgba16f) |