type optional |
:: "basic" or
"oriented"
|
|
picture | :: Sprite |
Only loaded if |
Only loaded if |
||
rotation_shift optional | :: RealOrientation |
Only loaded if |
Only loaded if |
||
intensity | :: float |
Brightness of the light in the range |
Brightness of the light in the range |
||
size | :: float |
The radius of the light in tiles. |
The radius of the light in tiles. |
||
source_orientation_offset optional | :: RealOrientation |
|
add_perspective optional | :: bool |
|
shift optional | :: Vector |
|
color optional | :: Color |
Color of the light. |
Color of the light. |
||
minimum_darkness optional | :: float |
|
-- The light of the orange state of the rail signal orange_light = {intensity = 0.2, size = 4, color={r=1, g=0.5}}
-- The front lights of the car light = { { type = "oriented", minimum_darkness = 0.3, picture = { filename = "__core__/graphics/light-cone.png", priority = "extra-high", flags = { "light" }, scale = 2, width = 200, height = 200 }, shift = {-0.6, -14}, size = 2, intensity = 0.6, color = {r = 0.92, g = 0.77, b = 0.3} }, { type = "oriented", minimum_darkness = 0.3, picture = { filename = "__core__/graphics/light-cone.png", priority = "extra-high", flags = { "light" }, scale = 2, width = 200, height = 200 }, shift = {0.6, -14}, size = 2, intensity = 0.6, color = {r = 0.92, g = 0.77, b = 0.3} } }