Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit65083fe8f2

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

namekind
scene_colortexture2d
scene_depthtexture_depth
scene_normaltexture2d
scene_materialtexture2d (sample: uint)
frame_cambuffer, read vec4<f32>
area_light_paramsbuffer, read vec4<f32>
area_light_recordsbuffer, read vec4<f32>
area_outstorage2d (rgba16f)

area_out holds linear light, which an area light's contribution can carry past 1.0 — an 8-bit target would clamp it.