Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit3bb1da2647

README.md

ContactShadows

The scene small-scale grounding, as a component — the contact a shadow map cannot resolve, under a chair leg or a prop on a table.

entity(id).component.add("ContactShadows", { strength = 0.9, length = 0.35 })

Every field is live and persists with the scene. strength 0 turns it off while keeping the settings authored; removing the last one in the scene clears it.

fieldeffect
strengthHow dark a fully occluded contact goes, in [0, 1]. 0 is off.
lengthTrace length in world units.
stepsSamples along the trace.
biasNormal offset before the march starts.
thicknessWorld-space thickness assumed for an occluder.
localLightsWhether point, spot and distant lights supply contact of their own alongside the sun.
maxTracedLightsHow many lights a pixel may trace toward on top of the sun.

Runtime control goes through @builtin::systems.contactShadows.contactShadows.