Builtin Library
- ..
- README.md690 B
- bindings.yaml505 B
- shader.wgsl6.8 KB
README.md
area_lighting
Shades every area light in the scene: a rectangle, disc or tube is integrated over its surface rather than treated as a point, so the highlight has the light's shape.
Bindings
| name | kind |
|---|---|
scene_color | texture2d |
scene_depth | texture_depth |
scene_normal | texture2d |
scene_material | texture2d (sample: uint) |
frame_cam | buffer, read vec4<f32> |
area_light_params | buffer, read vec4<f32> |
area_light_records | buffer, read vec4<f32> |
area_out | storage2d (rgba16f) |
area_out holds linear light, which an area light's contribution can carry past 1.0 — an 8-bit target would clamp it.