Talos docs

light

Since 0.6
Plain text

Use it in a scene entity's components list as { "type": "light", … }. The contract writes the fields flat and refuses unknown keys.

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
kindLightKindyesdirectional, point, spot
colorstringyes
intensitynumberyes
castShadowbooleanno
rangenumberno
anglenumberno
indirectIntensitynumbernoMultiplier on this light's contribution to the indirect (bounced) light, 0..16; absent means no change. Zero keeps the light's direct light and removes its bounce; two doubles the bounce. HD's ray-traced GI only: the standard renderer ignores it (hd-only-ignored). Changing it while the scene runs re-lights the GI within a few frames, with no restart.

Rules that can refuse it

Example

From the contract's tested fixture fixtures/contract/full20/scene.json#lamps.

{
  "type": "light",
  "kind": "point",
  "color": "#FFD9A0",
  "intensity": 12,
  "range": 9
}