Namespace in reactor_3d_lighting.js

Reactor3D.LightShims

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

Lamplight and shadows in North Haven.

Quick Reference

Other 2

nova() MVNovaLighting.
rave() PSYCHRONIC_RaveLighting.

Other

nova

static source
Reactor3D.LightShims.nova()

MVNovaLighting.

Details

MVNovaLighting.

Its manager hands out the lights on the current map, each already carrying a map-cell position, a radius in pixels, a tint and an alpha. flashlight is its cone; fire is a point that flickers, which three.js gives for free because the plugin animates the values this reads.

rave

static source
Reactor3D.LightShims.rave()

PSYCHRONIC_RaveLighting.

Details

PSYCHRONIC_RaveLighting.

A light belongs to a character, as a parsed config on _lights, and that is the only place it certainly exists. The plugin also builds additive glow sprites from those configs into the spriteset's _lightContainer, and reading those instead is a mistake: they are pooled, created lazily, left invisible when unused, and skipped entirely on a map whose overlay pass returns early — so a fully lit map can present an empty container and Reactor would find no lights at all while the plugin drew a dozen.

The character also answers the question a sprite cannot. A sprite's x/y are screen pixels, which mean nothing once the ground is projected; the character knows which cell it is standing in.