Namespace in reactor_3d_lighting.js

Reactor3D.MapScene

3 functions in 3 groups · hide internal

Lamplight and shadows in North Haven.

Quick Reference

Actions 1

setCutLook() Sets the cut look.

Updating & Drawing 1

updateCutaway() others: the characters beside the player a wall must not hide either (followers, the nearest events), up to C…

Other 1

cullCutGhosts() The ghosts this frame draws: those whose chunk a corridor crosses.

Actions

setCutLook

method source
Reactor3D.MapScene.prototype.setCutLook(on)

Sets the cut look.

Updating & Drawing

updateCutaway

method source
Reactor3D.MapScene.prototype.updateCutaway(camera, mapData, character, others)

others: the characters beside the player a wall must not hide either (followers, the nearest events), up to CUTAWAY_FOCI in all.

Other

cullCutGhosts

method source
Reactor3D.MapScene.prototype.cullCutGhosts(eye, foci, count, width)

The ghosts this frame draws: those whose chunk a corridor crosses.

Details

The ghosts this frame draws: those whose chunk a corridor crosses. A ghost shows only inside a corridor (its shader discards the rest), and with every ghost shown the whole of the pieces was drawn a second time each frame to be thrown away, corridor or none. Nobody hidden shows none.