code/_onclick/hud/rendering/plane_master.dm
/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/blackness | Plane master handling byond internal blackness vars are set as to replicate behavior when rendering to other planes do not touch this unless you know what you are doing |
/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 |