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