Namespace in reactor_3d_lighting.js
Reactor3D.LightShims.rave
1 functions in 1 groups · hide internal
Quick Reference
Other 1
| suppress() | RaveLighting draws in two parts and only one of them is the lights. |
Other
suppress
static sourceReactor3D.LightShims.rave.suppress(hide)
RaveLighting draws in two parts and only one of them is the lights.
Details
RaveLighting draws in two parts and only one of them is the lights.
_lightContainer holds additive glow sprites. _toneSprite is the darkness:
a full-screen bitmap filled with the screen tone, with light-shaped holes
punched through it. On a night or interior map the tone is [-255,-255,-255],
so that sprite is opaque black over the entire screen — including over a 3D
ground that has already been lit for real. Hiding only the container left the
black wash in place, which is a 3D map that renders perfectly and cannot be
seen: black, with the seams of the geometry seeping through the punched holes
and the lights apparently floating on top of nothing.
renderable rather than visible, and only renderable. The plugin
rewrites _lightContainer.visible from the options setting on every single
frame of Spriteset_Map.update, so a one-shot visible = false is undone
before it is ever drawn — and writing visible back ourselves would be worse
than useless, because it would overrule the player turning lighting effects
off. visible is the plugin's to own and renderable is nobody's; taking
only the second suppresses the overlay without having an opinion about the
first, and restoring it gives back exactly what was there.