SpotLight
Inherits from: PointLight > Light
Overview
Represents a spot light source at a given position in 3D space, with configurable direction and focus.
Profile: common
Variable Summary
| name | type | Default Value | description |
|---|---|---|---|
| pointsAtX | Number | 0.0 |
The x coordinate of the direction vector for this light.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
|
| pointsAtY | Number | 0.0 |
The y coordinate of the direction vector for this light.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
|
| pointsAtZ | Number | 0.0 |
The z coordinate of the direction vector for this light.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
|
| specularExponent | Number | 1.0 |
The specular exponent, which controls the focus of this light source.
Min: 0.0
Max: 4.0
Default: 1.0
Identity: 1.0
|
Inherited Variables
PointLight
| name | type | Default Value | description |
|---|---|---|---|
| x | Number | 0.0 |
The x coordinate of the light position.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
|
| y | Number | 0.0 |
The y coordinate of the light position.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
|
| z | Number | 0.0 |
The z coordinate of the light position.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
|
Light
| name | type | Default Value | description |
|---|---|---|---|
| color | Color | WHITE |
The color of the light source.
Min: n/a
Max: n/a
Default: Color.WHITE
Identity: n/a
|
