SpotLight

new Cesium.SpotLight(position, targetPosition, options)

聚光灯光源
Name Type Description
position Cartesian3 optional 光源的位置,世界坐标系 .
targetPosition Cartesian3 optional 光源的目标位置,世界坐标系 .
options Object optional 对象具有如下属性:
Name Type Default Description
color Color Color.WHITE optional 光源颜色.
intensity Number 2.0 optional 光源强度
attenuation Number 1.0 optional 衰减系数,其值越小,随距离衰减越小,越亮
affectDistance Number 100.0 optional 光源的影响范围
angle Number PI/4 optional 聚光范围,单位为弧度,最大值为PI/2
exponent Number 1.0 optional 聚光灯的聚光指数,数值越大,光源强度越集中

Members

affectDistance : Number

设置或获取光源影响范围
设置或获取光源聚光范围

attenuation : Number

设置或获取光源衰减因子
设置或获取光源的颜色

exponent : Number

设置或获取光源聚光指数

intensity : Number

设置或获取光源强度
设置或获取光源位置
设置或获取光源目标位置
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.