# SearchlightEffect

#### new Cesium.SearchlightEffect(viewer, position, directionPosition, transform, options, searchlightColor, mixFactor, duration, type, width)
MapGIS/PostProcessingEffects/SearchlightEffect.js 136

探照灯特效，设置一个探照灯位置点坐标，设置一个灯光方向点坐标，然后光线亮度都会跟随距离和宽度产生衰减,作用于模型本身

Name | Type | Description
--- | --- | ---
`viewer` | Viewer | 场景视图
`position` | Cartesian3 | 探照灯位置坐标
`directionPosition` | Cartesian3 | 灯光方向坐标
`transform` | Matrix4 | 模型转换矩阵
`options` | Object | 附加参数
`searchlightColor` | Color | 探照灯颜色
`mixFactor` | Number | 混合系数
`duration` | Number | 特效运动周期，单位毫秒
`type` | Number | 探照灯类型，默认2.0
`width` | Number | 探照灯宽度

### Members

#### width : Number
MapGIS/PostProcessingEffects/SearchlightEffect.js 187

探照灯宽度

### Methods

#### add()
MapGIS/PostProcessingEffects/SearchlightEffect.js 201

添加探照灯特效

#### remove()
MapGIS/PostProcessingEffects/SearchlightEffect.js 210

移除探照灯特效