code/__DEFINES/lighting.dm ![code/__DEFINES/lighting.dm0](git.png)
NO_LIGHT_SUPPORT | Object doesn't use any of the light systems. Should be changed to add a light source to the object. |
---|---|
COMPLEX_LIGHT | Light made with the lighting datums, applying a matrix. |
OVERLAY_LIGHT | Light made by masking the lighting darkness plane. |
OVERLAY_LIGHT_DIRECTIONAL | Light made by masking the lighting darkness plane, and is directional. |
OVERLAY_LIGHT_BEAM | Light made by masking the lighting darkness plane, and is a directionally focused beam. |
NONSENSICAL_VALUE | Nonesensical value for light color, used for null checks. |
LIGHT_ATTACHED | Is our overlay light source attached to another movable (its loc), meaning that the lighting component should go one level deeper. |
LIGHT_FROZEN | Freezes a light in its current state, blocking any attempts at modification |
LIGHT_IGNORE_OFFSET | Does this light ignore inherent offsets? (Pixels, transforms, etc) |
LIGHTING_HEIGHT_SPACE | light UNDER the floor. primarily used for starlight, shouldn't fuck with this |
LIGHTING_HEIGHT_FLOOR | light ON the floor |
LIGHTING_HEIGHT | height off the ground of light sources on the pseudo-z-axis, you should probably leave this alone |
LIGHTING_ROUND_VALUE | Value used to round lumcounts, values smaller than 1/129 don't matter (if they do, thanks sinking points), greater values will make lighting less precise, but in turn increase performance, VERY SLIGHTLY. |
LIGHTING_ICON | icon used for lighting shading effects |
LIGHTING_SOFT_THRESHOLD | If the max of the lighting lumcounts of each spectrum drops below this, disable luminosity on the lighting objects. Set to zero to disable soft lighting. Luminosity changes then work if it's lit at all. |
LIGHT_RANGE_FIRE | How many tiles standard fires glow. |
LIGHTING_NIGHTVISION_THRESHOLD | What counts as being able to see in the dark |
LIGHTING_TILE_IS_DARK | The amount of lumcount on a tile for it to be considered dark (used to determine reading and nyctophobia) |
EMISSIVE_BLOCK_GENERIC | Uses vis_overlays to leverage caching so that very few new items need to be made for the overlay. For anything that doesn't change outline or opaque area much or at all. |
EMISSIVE_BLOCK_UNIQUE | Uses a dedicated render_target object to copy the entire appearance in real time to the blocking layer. For things that can change in appearance a lot from the base state, like humans. |
EMISSIVE_BLOCK_NONE | Don't block any emissives. Useful for things like, pieces of paper? |
EMISSIVE_COLOR | The color matrix applied to all emissive overlays. Should be solely dependent on alpha and not have RGB overlap with EM_BLOCK_COLOR. |
EM_BLOCK_COLOR | The color matrix applied to all emissive blockers. Should be solely dependent on alpha and not have RGB overlap with EMISSIVE_COLOR. |
EMISSIVE_APPEARANCE_FLAGS | A set of appearance flags applied to all emissive and emissive blocker overlays. KEEP_APART to prevent parent hooking, KEEP_TOGETHER for children, and we reset the color and alpha of our parent so nothing gets overridden |
EM_MASK_MATRIX | The color matrix used to mask out emissive blockers on the emissive plane. Alpha should default to zero, be solely dependent on the RGB value of EMISSIVE_COLOR, and be independent of the RGB value of EM_BLOCK_COLOR. |
PARSE_LIGHT_COLOR | Parse the hexadecimal color into lumcounts of each perspective. |
Define Details
COMPLEX_LIGHT ![code/__DEFINES/lighting.dm 4](git.png)
Light made with the lighting datums, applying a matrix.
EMISSIVE_APPEARANCE_FLAGS ![code/__DEFINES/lighting.dm 92](git.png)
A set of appearance flags applied to all emissive and emissive blocker overlays. KEEP_APART to prevent parent hooking, KEEP_TOGETHER for children, and we reset the color and alpha of our parent so nothing gets overridden
EMISSIVE_BLOCK_GENERIC ![code/__DEFINES/lighting.dm 72](git.png)
Uses vis_overlays to leverage caching so that very few new items need to be made for the overlay. For anything that doesn't change outline or opaque area much or at all.
EMISSIVE_BLOCK_NONE ![code/__DEFINES/lighting.dm 76](git.png)
Don't block any emissives. Useful for things like, pieces of paper?
EMISSIVE_BLOCK_UNIQUE ![code/__DEFINES/lighting.dm 74](git.png)
Uses a dedicated render_target object to copy the entire appearance in real time to the blocking layer. For things that can change in appearance a lot from the base state, like humans.
EMISSIVE_COLOR ![code/__DEFINES/lighting.dm 80](git.png)
The color matrix applied to all emissive overlays. Should be solely dependent on alpha and not have RGB overlap with EM_BLOCK_COLOR.
EM_BLOCK_COLOR ![code/__DEFINES/lighting.dm 86](git.png)
The color matrix applied to all emissive blockers. Should be solely dependent on alpha and not have RGB overlap with EMISSIVE_COLOR.
EM_MASK_MATRIX ![code/__DEFINES/lighting.dm 94](git.png)
The color matrix used to mask out emissive blockers on the emissive plane. Alpha should default to zero, be solely dependent on the RGB value of EMISSIVE_COLOR, and be independent of the RGB value of EM_BLOCK_COLOR.
LIGHTING_HEIGHT ![code/__DEFINES/lighting.dm 28](git.png)
height off the ground of light sources on the pseudo-z-axis, you should probably leave this alone
LIGHTING_HEIGHT_FLOOR ![code/__DEFINES/lighting.dm 26](git.png)
light ON the floor
LIGHTING_HEIGHT_SPACE ![code/__DEFINES/lighting.dm 24](git.png)
light UNDER the floor. primarily used for starlight, shouldn't fuck with this
LIGHTING_ICON ![code/__DEFINES/lighting.dm 33](git.png)
icon used for lighting shading effects
LIGHTING_NIGHTVISION_THRESHOLD ![code/__DEFINES/lighting.dm 55](git.png)
What counts as being able to see in the dark
LIGHTING_ROUND_VALUE ![code/__DEFINES/lighting.dm 30](git.png)
Value used to round lumcounts, values smaller than 1/129 don't matter (if they do, thanks sinking points), greater values will make lighting less precise, but in turn increase performance, VERY SLIGHTLY.
LIGHTING_SOFT_THRESHOLD ![code/__DEFINES/lighting.dm 37](git.png)
If the max of the lighting lumcounts of each spectrum drops below this, disable luminosity on the lighting objects. Set to zero to disable soft lighting. Luminosity changes then work if it's lit at all.
LIGHTING_TILE_IS_DARK ![code/__DEFINES/lighting.dm 58](git.png)
The amount of lumcount on a tile for it to be considered dark (used to determine reading and nyctophobia)
LIGHT_ATTACHED ![code/__DEFINES/lighting.dm 15](git.png)
Is our overlay light source attached to another movable (its loc), meaning that the lighting component should go one level deeper.
LIGHT_FROZEN ![code/__DEFINES/lighting.dm 17](git.png)
Freezes a light in its current state, blocking any attempts at modification
LIGHT_IGNORE_OFFSET ![code/__DEFINES/lighting.dm 19](git.png)
Does this light ignore inherent offsets? (Pixels, transforms, etc)
LIGHT_RANGE_FIRE ![code/__DEFINES/lighting.dm 40](git.png)
How many tiles standard fires glow.
NONSENSICAL_VALUE ![code/__DEFINES/lighting.dm 12](git.png)
Nonesensical value for light color, used for null checks.
NO_LIGHT_SUPPORT ![code/__DEFINES/lighting.dm 2](git.png)
Object doesn't use any of the light systems. Should be changed to add a light source to the object.
OVERLAY_LIGHT ![code/__DEFINES/lighting.dm 6](git.png)
Light made by masking the lighting darkness plane.
OVERLAY_LIGHT_BEAM ![code/__DEFINES/lighting.dm 10](git.png)
Light made by masking the lighting darkness plane, and is a directionally focused beam.
OVERLAY_LIGHT_DIRECTIONAL ![code/__DEFINES/lighting.dm 8](git.png)
Light made by masking the lighting darkness plane, and is directional.
PARSE_LIGHT_COLOR ![code/__DEFINES/lighting.dm 99](git.png)
Parse the hexadecimal color into lumcounts of each perspective.