Skip to content

SpotLight

A SpotLight is located at a point in space and is restricted to an angle, resulting in a cone-shaped area of illumination. The center of the cone points in the forward direction. The intensity of the light decreases with distance from the light, reaching zero at a certain distance specified by range. Light also decreases at the edges of the cone.

New Properties

PropertyTypeDefaultAccessDescription
castShadows1bfalse🟩🟥Enable shadow casting
range1f50.0🟩🟥▶️Light range in units
spotAngle1f50.0🟩🟥▶️Light cone angle in degrees
spotBlend1f0.1🟩🟥▶️Softness of light edge
Details

Type
1b: boolean
1c: color (integer)
1i: integer
1f: float
1s: string
2b: 2-component boolean vector
2i: 2-component integer vector
2f: 2-component float vector
3b: 3-component boolean vector
3i: 3-component integer vector
3f: 3-component float vector

Access
🟩 : Property value can be read with FxNode.Get
🟥 : Property value can be changed with FxNode.Set
❌ : Property value is read-only and can't be changed
▶️ : Property can be animated with FxAnimation

Inherited Properties

From Node

id layer order parent selected tag type typeName visible

From Object3D

liveRotate liveScale liveTranslate pivot rotate scale translate

From Light

color intensity shadowBias

See Also

FxNode, FxObject3D