Namespace in reactor_3d_lighting.js

Reactor3D.LightGrid

2 public functions in 2 groups · show internal (_) functions

Lamplight and shadows in North Haven.

Quick Reference

Checks (True / False) 1

withinSlack() Whether light i as it stands now lies inside what it was packed with (key, and its two slacks).

Updating & Drawing 1

updateCached() Update only cells entered or left by a light; intersection maths is shared with fill().

Checks (True / False)

withinSlack

static source
Reactor3D.LightGrid.withinSlack(key, slack, i, pos, color, aim)

Whether light i as it stands now lies inside what it was packed with (key, and its two slacks).

Updating & Drawing

updateCached

static source
Reactor3D.LightGrid.updateCached(uniforms, focus)

Update only cells entered or left by a light; intersection maths is shared with fill().