Fio Wiki
Unified Liminal World Editor, Procedural Engine & Game Creation Toolkit inspired by Radiant and Hammer. Optimised for low-power CPUs.
Brought to you by:
vicioussquid
A dynamic source of light in the world
Lights can be attached to moving brushes (see
maps/dLight_Test.json)Shadows only appear when the global Enable Dynamic Shadows setting is on, the light's Casts Shadows is enabled, and the light is one of the first 8 shadow-casting lights in view.
| Input | Parameter | Description |
|---|---|---|
TurnOn |
— | Turn the light on |
TurnOff |
— | Turn the light off |
Toggle |
— | Toggle the light on/off |
SetBrightness |
float 0–10 |
Set the light intensity |
SetColor |
R G B (0–255, space-separated) |
Set the light colour, e.g. 255 128 0 |
EnableShadows |
— | Start casting depth cube-map shadows |
DisableShadows |
— | Stop casting shadows |
ToggleShadows |
— | Toggle shadow casting on/off |
Hide |
— | Hide the light entity |
Show |
— | Show the light entity |
ToggleVisibility |
— | Toggle the light entity's visibility |
FadeIn |
float (seconds) | Fade the light in over time (declared, not yet implemented) |
FadeOut |
float (seconds) | Fade the light out over time (declared, not yet implemented) |
| Output | Description |
|---|---|
OnTurnedOn |
Fired when the light turns on |
OnTurnedOff |
Fired when the light turns off |
OnShadowsEnabled |
Fired when shadow casting is enabled |
OnShadowsDisabled |
Fired when shadow casting is disabled |