Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit61a33237e0

README.md

rt_shadow

Traces shadow rays from each shaded point toward every light, sampling a disc at the light so the penumbra tightens where an occluder meets its receiver and widens with their separation.

Bindings

namekind
scene_colortexture2d
scene_materialtexture2d (sample: uint)
scene_depthtexture_depth
scene_tlasacceleration_structure
frame_cambuffer
lightsbuffer
shadowed_outstorage2d (rgba16f)

Params

nametypewhat it is
strengthfloathow much a fully blocked light is reduced
biasfloatmetres the ray origin lifts off the surface
sourceRadiusfloatworld radius each light is sampled as
samplesfloatarea rays per light
ambientR / ambientG / ambientBfloatthe floor a fully shadowed point falls to