code/_onclick/hud/plane_master.dm

/atom/movable/screen/plane_master/openspace | Things rendered on "openspace"; holes in multi-z |
---|---|
/atom/movable/screen/plane_master/floor | Contains just the floor |
/atom/movable/screen/plane_master/game_world | Contains most things in the game world |
/atom/movable/screen/plane_master/lighting | Contains all lighting objects |
This system works by exploiting BYONDs color matrix filter to use layers to handle emissive blockers. Emissive overlays are pasted with an atom color that converts them to be entirely some specific color. Emissive blockers are pasted with an atom color that converts them to be entirely some different color. Emissive overlays and emissive blockers are put onto the same plane. The layers for the emissive overlays and emissive blockers cause them to mask eachother similar to normal BYOND objects. A color matrix filter is applied to the emissive plane to mask out anything that isn't whatever the emissive color is. This is then used to alpha mask the lighting plane. | |
/atom/movable/screen/plane_master/emissive | Handles emissive overlays and emissive blockers. |
/atom/movable/screen/plane_master/parallax | Contains space parallax |