new PointLight(position, options)
点光源类。
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
position |
Cartesian3 |
点光源位置。 |
||||||||||||||||||||
options |
Object |
可选
包含以下属性:
|
Members
-
static colorColor
-
获取或设置光源颜色,默认白色。
- Default Value: Color (1.0, 1.0, 1.0, 1.0)
static cutoffDistanceNumber
获取或设置点光源的扩散距离。
- Default Value: 10.0 米
static decayNumber
获取或设置点点光源衰减因子,越小随着距离衰减越小,越亮。
- Default Value: 1.0
(static, readonly) idNumber
获取点光源id。
static intensityNumber
获取或设置点光源强度。
- Default Value: 2.0
(static, readonly) lightColorColor
获取点光源颜色。
- Default Value: Color (1.0, 1.0, 1.0, 1.0)
(static, readonly) lightTypeLightSourceType
获取点光源类型。
static positionCartesian3
获取或设置点光源位置,使用地理坐标系。