-
Notifications
You must be signed in to change notification settings - Fork 9
Light
Vicious Squid edited this page Jul 19, 2026
·
13 revisions
A dynamic source of light in the world
- Colour : [RGB value] example: 255,255,255
- Intensity : default 1.0
- Name
- Radius : default 512
- State : on/off
- Casts Shadows : on/off — when enabled, this light renders depth cube-map shadows (default off)
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 4 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 |