new PointLight(position, options)
Point light source category.
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
position |
Cartesian3 |
点光源位置(笛卡尔世界坐标)。 |
||||||||||||||||||||
options |
Object |
optional
Contains the following attributes:
|
Members
-
colorColor
-
Get or set the color of the light source, default is white.
- Default Value: Color (1.0, 1.0, 1.0, 1.0)
cutoffDistanceNumber
获取或设置点光源的扩散距离(单位:米)。
- Default Value: 10.0 米
decayNumber
Get or set the attenuation factor of the point light source, which decreases with distance and becomes brighter as it decreases.
- Default Value: 1.0
readonly idNumber
Obtain the ID of the point light source.
intensityNumber
Get or set the intensity of a point light source.
- Default Value: 2.0
readonly lightColorColor
Obtain the color of the point light source.
- Default Value: Color (1.0, 1.0, 1.0, 1.0)
readonly lightTypeLightSourceType
Obtain the type of point light source.
positionCartesian3
获取或设置点光源位置,使用笛卡尔世界坐标。