File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,14 @@ export default class AdvancedAnalysisManager {
366366 * 创建下雨特效
367367 * @function module:客户端可视化分析.AdvancedAnalysisManager.prototype.createRain
368368 * @param {Object } options 下雨特效参数
369+ * @param {Matrix4 } options.viewInverseMatrix 场景视图逆矩阵viewer.camera._invViewMatrix
370+ * @param {Matrix4 } options.modelMatrix 模型转换矩阵
371+ * @param {Array<Cartesian3> } options.positionArray 限定模型下雨范围
372+ * @param {Number } [options.alpha] 雨丝透明度
373+ * @param {Number } [options.angle] 雨丝倾斜角度
374+ * @param {Number } [options.speed] 雨丝速度
375+ * @param {Number } [options.rainLength] 雨丝附加长度
376+ * @param {Number } [options.factor] 雨丝与场景混合度
369377 * @param {Number } [options.hueShift] 色调
370378 * @param {Number } [options.saturationShift] 饱和度
371379 * @param {Number } [options.brightnessShift] 亮度
@@ -376,7 +384,7 @@ export default class AdvancedAnalysisManager {
376384 createRain ( options ) {
377385 const optionsParam = Cesium . defaultValue ( options , { } ) ;
378386 const collection = this . viewer . scene . postProcessStages ;
379- const rain = Cesium . PostProcessStageLibrary . createRainStage ( ) ;
387+ const rain = Cesium . PostProcessStageLibrary . createRainStage ( optionsParam ) ;
380388 collection . add ( rain ) ;
381389 this . scene . skyAtmosphere . hueShift = Cesium . defaultValue ( optionsParam . hueShift , - 0.8 ) ;
382390 this . scene . skyAtmosphere . saturationShift = Cesium . defaultValue ( optionsParam . saturationShift , - 0.7 ) ;
You can’t perform that action at this time.
0 commit comments