light~SpotLight()

聚光灯,精准光源的一种,从一点发出,向特定方向,并限制在特定角度范围内的光线,内锥角范围的光不会由内向外衰减,外锥角的光会由内向外衰减,如手电筒。仅作用于受光材质。

Summary

Methods:

Constructor

new SpotLight()

Parameters:
Name Type Description
options.innerAngle Number

内锥角,默认60度

options.outerAngle Number

外锥角,默认65度

Example
light=new hmap.light.SpotLight({
     innerAngle:50,   //内锥角50度
     outerAngle:80   //外锥角80度
});
 map.addLight(light)

Methods