@mapgis/webclient-cesium-plugin 17.2.2 → 17.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1329 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">PostProcessStageLibrary</span>
5
+
6
+ </header>
7
+
8
+
9
+
10
+
11
+
12
+ <section>
13
+
14
+ <article>
15
+ <div class="container-overview">
16
+
17
+
18
+ <div class='vertical-section'>
19
+ <div class="members">
20
+ <div class="member">
21
+
22
+
23
+
24
+
25
+ <h4 class="name" id="PostProcessStageLibrary">
26
+ <a class="href-link" href="#PostProcessStageLibrary">#</a>
27
+
28
+ <span class="code-name" id="PostProcessStageLibrary" style="font-size:30px">
29
+
30
+ new PostProcessStageLibrary<span class="signature">()</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+ <div class="description">
38
+ <p>用于创建后处理特效的扩展库</p>
39
+ </div>
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+ <dl class="details">
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+ </dl>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <h5>示例</h5>
111
+
112
+
113
+ <pre class="prettyprint"><code>// ES5引入方式
114
+ const { PostProcessStageLibrary } = zondy
115
+ // ES6引入方式
116
+ import { PostProcessStageLibrary } from "@mapgis/webclient-cesium-plugin"</code></pre>
117
+
118
+
119
+
120
+
121
+ </div>
122
+ </div>
123
+ </div>
124
+
125
+
126
+ </div>
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+ <div class='vertical-section'>
144
+ <h3 id='function'>方法</h3>
145
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
146
+ <div class="members">
147
+ <div class="table-container">
148
+ <table class="params table">
149
+ <thead>
150
+ <tr>
151
+ <th>名称</th>
152
+ <th>返回值类型</th>
153
+ <th>描述</th>
154
+ </tr>
155
+ </thead>
156
+ <tbody>
157
+
158
+ <tr class="deep-level-0">
159
+ <td class="name"><code><a href="#createFogStage">createFogStage</a></code></td>
160
+ <td class="name">
161
+ <code>
162
+
163
+
164
+ <span class="param-type">
165
+
166
+ Cesium.PostProcessStage
167
+
168
+ </span>
169
+
170
+
171
+
172
+
173
+ </code>
174
+ </td>
175
+ <td class="name"><code><p>创建雾后处理特效对象</p></code></td>
176
+ </tr>
177
+
178
+ <tr class="deep-level-0">
179
+ <td class="name"><code><a href="#createRainStage">createRainStage</a></code></td>
180
+ <td class="name">
181
+ <code>
182
+
183
+
184
+ <span class="param-type">
185
+
186
+ Cesium.PostProcessStage
187
+
188
+ </span>
189
+
190
+
191
+
192
+
193
+ </code>
194
+ </td>
195
+ <td class="name"><code><p>创建雨后处理特效对象</p></code></td>
196
+ </tr>
197
+
198
+ <tr class="deep-level-0">
199
+ <td class="name"><code><a href="#createSnowStage">createSnowStage</a></code></td>
200
+ <td class="name">
201
+ <code>
202
+
203
+
204
+ <span class="param-type">
205
+
206
+ Cesium.PostProcessStage
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+ </code>
214
+ </td>
215
+ <td class="name"><code><p>创建雪后处理特效对象</p></code></td>
216
+ </tr>
217
+
218
+ </tbody>
219
+ </table>
220
+ </div>
221
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
222
+
223
+ <div class="member">
224
+
225
+
226
+
227
+ <h4 class="name" id=".createFogStage">
228
+ <a class="href-link" href="#.createFogStage">#</a>
229
+
230
+
231
+ <span class='tag'>static</span>
232
+
233
+
234
+ <span class="code-name" id="createFogStage" style="font-size:30px">
235
+
236
+ createFogStage<span class="signature">(options)</span>
237
+
238
+ </span>
239
+ </h4>
240
+
241
+
242
+
243
+ <div class="description">
244
+ <p>创建雾后处理特效对象</p>
245
+ </div>
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+ <h4>参数</h4>
257
+
258
+ <div class="table-container">
259
+ <table class="params table">
260
+ <thead>
261
+ <tr>
262
+
263
+ <th>名称</th>
264
+
265
+
266
+ <th>类型</th>
267
+
268
+
269
+ <th style="min-width: 100px;">默认值</th>
270
+
271
+
272
+ <th class="last">描述</th>
273
+ </tr>
274
+ </thead>
275
+
276
+ <tbody>
277
+
278
+
279
+
280
+ <tr class="deep-level-0">
281
+
282
+ <td class="name"><code>options</code></td>
283
+
284
+
285
+ <td class="type">
286
+
287
+
288
+ <span class="param-type">
289
+
290
+ Object
291
+
292
+ </span>
293
+
294
+
295
+
296
+
297
+ </td>
298
+
299
+
300
+ <td class="default">
301
+
302
+ </td>
303
+
304
+
305
+ <td class="description last"><p>附加参数</p></td>
306
+ </tr>
307
+
308
+
309
+
310
+
311
+ <tr class="deep-level-1">
312
+
313
+ <td class="name"><code>viewer</code></td>
314
+
315
+
316
+ <td class="type">
317
+
318
+
319
+ <span class="param-type">
320
+
321
+ Cesium.Viewer
322
+
323
+ </span>
324
+
325
+
326
+
327
+
328
+ </td>
329
+
330
+
331
+ <td class="default">
332
+
333
+ </td>
334
+
335
+
336
+ <td class="description last"><p>场景视图对象</p></td>
337
+ </tr>
338
+
339
+
340
+
341
+
342
+ <tr class="deep-level-1">
343
+
344
+ <td class="name"><code>alpha</code></td>
345
+
346
+
347
+ <td class="type">
348
+
349
+
350
+ <span class="param-type">
351
+
352
+ Number
353
+
354
+ </span>
355
+
356
+
357
+
358
+
359
+ </td>
360
+
361
+
362
+ <td class="default">
363
+
364
+ 0.5
365
+
366
+ </td>
367
+
368
+
369
+ <td class="description last"><p>雾的透明度</p></td>
370
+ </tr>
371
+
372
+
373
+
374
+
375
+ <tr class="deep-level-1">
376
+
377
+ <td class="name"><code>fogcolor</code></td>
378
+
379
+
380
+ <td class="type">
381
+
382
+
383
+ <span class="param-type">
384
+
385
+ Cesium.Color
386
+
387
+ </span>
388
+
389
+
390
+
391
+
392
+ </td>
393
+
394
+
395
+ <td class="default">
396
+
397
+ new Cesium.Color(1.0,1.0,1.0,0.0)
398
+
399
+ </td>
400
+
401
+
402
+ <td class="description last"><p>雾颜色</p></td>
403
+ </tr>
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+ </tbody>
412
+ </table>
413
+ </div>
414
+
415
+
416
+
417
+
418
+
419
+
420
+ <dl class="details">
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+ </dl>
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+ <div class='columns method-parameter'>
472
+ <div class="column is-2"><label>返回值</label></div>
473
+ <div class="column is-10">
474
+
475
+
476
+
477
+ <div class="columns">
478
+
479
+ <div class='param-desc column is-7'><p>雾后处理特效对象</p></div>
480
+
481
+
482
+ <div class='column is-5 has-text-left'>
483
+ <label>类型: </label>
484
+
485
+ <span class="param-type">
486
+
487
+ Cesium.PostProcessStage
488
+
489
+ </span>
490
+
491
+
492
+
493
+ </div>
494
+
495
+ </div>
496
+
497
+
498
+ </div>
499
+ </div>
500
+
501
+
502
+
503
+
504
+
505
+
506
+ <h5>示例</h5>
507
+
508
+ <p class="code-caption"><h7 id='createRainStage'>创建雾后处理特效对象</h7></p>
509
+
510
+
511
+ <pre class="prettyprint"><code>const fog = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createFogStage({
512
+ viewer,
513
+ alpha: 0.1,
514
+ }))
515
+ fog.enabled = false // 关闭后处理特效
516
+ fog.uniforms.alpha = 0.7 // 修改相关参数</code></pre>
517
+
518
+
519
+
520
+ </div>
521
+
522
+ <div class="member">
523
+
524
+
525
+
526
+ <h4 class="name" id=".createRainStage">
527
+ <a class="href-link" href="#.createRainStage">#</a>
528
+
529
+
530
+ <span class='tag'>static</span>
531
+
532
+
533
+ <span class="code-name" id="createRainStage" style="font-size:30px">
534
+
535
+ createRainStage<span class="signature">(options)</span>
536
+
537
+ </span>
538
+ </h4>
539
+
540
+
541
+
542
+ <div class="description">
543
+ <p>创建雨后处理特效对象</p>
544
+ </div>
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+ <h4>参数</h4>
556
+
557
+ <div class="table-container">
558
+ <table class="params table">
559
+ <thead>
560
+ <tr>
561
+
562
+ <th>名称</th>
563
+
564
+
565
+ <th>类型</th>
566
+
567
+
568
+ <th style="min-width: 100px;">默认值</th>
569
+
570
+
571
+ <th class="last">描述</th>
572
+ </tr>
573
+ </thead>
574
+
575
+ <tbody>
576
+
577
+
578
+
579
+ <tr class="deep-level-0">
580
+
581
+ <td class="name"><code>options</code></td>
582
+
583
+
584
+ <td class="type">
585
+
586
+
587
+ <span class="param-type">
588
+
589
+ Object
590
+
591
+ </span>
592
+
593
+
594
+
595
+
596
+ </td>
597
+
598
+
599
+ <td class="default">
600
+
601
+ </td>
602
+
603
+
604
+ <td class="description last"><p>附加参数</p></td>
605
+ </tr>
606
+
607
+
608
+
609
+
610
+ <tr class="deep-level-1">
611
+
612
+ <td class="name"><code>viewer</code></td>
613
+
614
+
615
+ <td class="type">
616
+
617
+
618
+ <span class="param-type">
619
+
620
+ Cesium.Viewer
621
+
622
+ </span>
623
+
624
+
625
+
626
+
627
+ </td>
628
+
629
+
630
+ <td class="default">
631
+
632
+ </td>
633
+
634
+
635
+ <td class="description last"><p>场景视图对象</p></td>
636
+ </tr>
637
+
638
+
639
+
640
+
641
+ <tr class="deep-level-1">
642
+
643
+ <td class="name"><code>viewInverseMatrix</code></td>
644
+
645
+
646
+ <td class="type">
647
+
648
+
649
+ <span class="param-type">
650
+
651
+ Cesium.Matrix4
652
+
653
+ </span>
654
+
655
+
656
+
657
+
658
+ </td>
659
+
660
+
661
+ <td class="default">
662
+
663
+ Cesium.Matrix4.IDENTITY
664
+
665
+ </td>
666
+
667
+
668
+ <td class="description last"><p>视图逆矩阵</p></td>
669
+ </tr>
670
+
671
+
672
+
673
+
674
+ <tr class="deep-level-1">
675
+
676
+ <td class="name"><code>modelMatrix</code></td>
677
+
678
+
679
+ <td class="type">
680
+
681
+
682
+ <span class="param-type">
683
+
684
+ Cesium.Matrix4
685
+
686
+ </span>
687
+
688
+
689
+
690
+
691
+ </td>
692
+
693
+
694
+ <td class="default">
695
+
696
+ Cesium.Matrix4.IDENTITY
697
+
698
+ </td>
699
+
700
+
701
+ <td class="description last"><p>模型转换矩阵</p></td>
702
+ </tr>
703
+
704
+
705
+
706
+
707
+ <tr class="deep-level-1">
708
+
709
+ <td class="name"><code>positionArray</code></td>
710
+
711
+
712
+ <td class="type">
713
+
714
+
715
+ <span class="param-type">
716
+
717
+ Array
718
+
719
+ </span>
720
+
721
+
722
+
723
+
724
+ </td>
725
+
726
+
727
+ <td class="default">
728
+
729
+ </td>
730
+
731
+
732
+ <td class="description last"><p>限定模型上降雨范围的坐标数组</p></td>
733
+ </tr>
734
+
735
+
736
+
737
+
738
+ <tr class="deep-level-1">
739
+
740
+ <td class="name"><code>alpha</code></td>
741
+
742
+
743
+ <td class="type">
744
+
745
+
746
+ <span class="param-type">
747
+
748
+ Number
749
+
750
+ </span>
751
+
752
+
753
+
754
+
755
+ </td>
756
+
757
+
758
+ <td class="default">
759
+
760
+ 0.3
761
+
762
+ </td>
763
+
764
+
765
+ <td class="description last"><p>透明度,取值范围[0, 1]</p></td>
766
+ </tr>
767
+
768
+
769
+
770
+
771
+ <tr class="deep-level-1">
772
+
773
+ <td class="name"><code>angle</code></td>
774
+
775
+
776
+ <td class="type">
777
+
778
+
779
+ <span class="param-type">
780
+
781
+ Number
782
+
783
+ </span>
784
+
785
+
786
+
787
+
788
+ </td>
789
+
790
+
791
+ <td class="default">
792
+
793
+ 0.0
794
+
795
+ </td>
796
+
797
+
798
+ <td class="description last"><p>倾斜角度,取值范围</p></td>
799
+ </tr>
800
+
801
+
802
+
803
+
804
+ <tr class="deep-level-1">
805
+
806
+ <td class="name"><code>speed</code></td>
807
+
808
+
809
+ <td class="type">
810
+
811
+
812
+ <span class="param-type">
813
+
814
+ Number
815
+
816
+ </span>
817
+
818
+
819
+
820
+
821
+ </td>
822
+
823
+
824
+ <td class="default">
825
+
826
+ 15.0
827
+
828
+ </td>
829
+
830
+
831
+ <td class="description last"><p>雨丝速度,取值范围</p></td>
832
+ </tr>
833
+
834
+
835
+
836
+
837
+ <tr class="deep-level-1">
838
+
839
+ <td class="name"><code>rainLength</code></td>
840
+
841
+
842
+ <td class="type">
843
+
844
+
845
+ <span class="param-type">
846
+
847
+ Number
848
+
849
+ </span>
850
+
851
+
852
+
853
+
854
+ </td>
855
+
856
+
857
+ <td class="default">
858
+
859
+ 0.0
860
+
861
+ </td>
862
+
863
+
864
+ <td class="description last"><p>雨丝附加长度,取值范围</p></td>
865
+ </tr>
866
+
867
+
868
+
869
+
870
+ <tr class="deep-level-1">
871
+
872
+ <td class="name"><code>factor</code></td>
873
+
874
+
875
+ <td class="type">
876
+
877
+
878
+ <span class="param-type">
879
+
880
+ Number
881
+
882
+ </span>
883
+
884
+
885
+
886
+
887
+ </td>
888
+
889
+
890
+ <td class="default">
891
+
892
+ 0.1
893
+
894
+ </td>
895
+
896
+
897
+ <td class="description last"><p>场景混合度,取值范围[0, 1]</p></td>
898
+ </tr>
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+ </tbody>
907
+ </table>
908
+ </div>
909
+
910
+
911
+
912
+
913
+
914
+
915
+ <dl class="details">
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+ </dl>
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+ <div class='columns method-parameter'>
967
+ <div class="column is-2"><label>返回值</label></div>
968
+ <div class="column is-10">
969
+
970
+
971
+
972
+ <div class="columns">
973
+
974
+ <div class='param-desc column is-7'><p>雨后处理特效对象</p></div>
975
+
976
+
977
+ <div class='column is-5 has-text-left'>
978
+ <label>类型: </label>
979
+
980
+ <span class="param-type">
981
+
982
+ Cesium.PostProcessStage
983
+
984
+ </span>
985
+
986
+
987
+
988
+ </div>
989
+
990
+ </div>
991
+
992
+
993
+ </div>
994
+ </div>
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+ <h5>示例</h5>
1002
+
1003
+ <p class="code-caption"><h7 id='createRainStage'>创建雨后处理特效对象</h7></p>
1004
+
1005
+
1006
+ <pre class="prettyprint"><code>const rain = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createRainStage({
1007
+ viewer,
1008
+ alpha: 0.1,
1009
+ speed: 5
1010
+ }))
1011
+ rain.enabled = false // 关闭后处理特效
1012
+ rain.uniforms.alpha = 0.7 // 修改相关参数
1013
+ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
1014
+
1015
+
1016
+
1017
+ </div>
1018
+
1019
+ <div class="member">
1020
+
1021
+
1022
+
1023
+ <h4 class="name" id=".createSnowStage">
1024
+ <a class="href-link" href="#.createSnowStage">#</a>
1025
+
1026
+
1027
+ <span class='tag'>static</span>
1028
+
1029
+
1030
+ <span class="code-name" id="createSnowStage" style="font-size:30px">
1031
+
1032
+ createSnowStage<span class="signature">(options)</span>
1033
+
1034
+ </span>
1035
+ </h4>
1036
+
1037
+
1038
+
1039
+ <div class="description">
1040
+ <p>创建雪后处理特效对象</p>
1041
+ </div>
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+ <h4>参数</h4>
1053
+
1054
+ <div class="table-container">
1055
+ <table class="params table">
1056
+ <thead>
1057
+ <tr>
1058
+
1059
+ <th>名称</th>
1060
+
1061
+
1062
+ <th>类型</th>
1063
+
1064
+
1065
+ <th style="min-width: 100px;">默认值</th>
1066
+
1067
+
1068
+ <th class="last">描述</th>
1069
+ </tr>
1070
+ </thead>
1071
+
1072
+ <tbody>
1073
+
1074
+
1075
+
1076
+ <tr class="deep-level-0">
1077
+
1078
+ <td class="name"><code>options</code></td>
1079
+
1080
+
1081
+ <td class="type">
1082
+
1083
+
1084
+ <span class="param-type">
1085
+
1086
+ Object
1087
+
1088
+ </span>
1089
+
1090
+
1091
+
1092
+
1093
+ </td>
1094
+
1095
+
1096
+ <td class="default">
1097
+
1098
+ </td>
1099
+
1100
+
1101
+ <td class="description last"><p>附加参数</p></td>
1102
+ </tr>
1103
+
1104
+
1105
+
1106
+
1107
+ <tr class="deep-level-1">
1108
+
1109
+ <td class="name"><code>viewer</code></td>
1110
+
1111
+
1112
+ <td class="type">
1113
+
1114
+
1115
+ <span class="param-type">
1116
+
1117
+ Cesium.Viewer
1118
+
1119
+ </span>
1120
+
1121
+
1122
+
1123
+
1124
+ </td>
1125
+
1126
+
1127
+ <td class="default">
1128
+
1129
+ </td>
1130
+
1131
+
1132
+ <td class="description last"><p>场景视图对象</p></td>
1133
+ </tr>
1134
+
1135
+
1136
+
1137
+
1138
+ <tr class="deep-level-1">
1139
+
1140
+ <td class="name"><code>size</code></td>
1141
+
1142
+
1143
+ <td class="type">
1144
+
1145
+
1146
+ <span class="param-type">
1147
+
1148
+ Number
1149
+
1150
+ </span>
1151
+
1152
+
1153
+
1154
+
1155
+ </td>
1156
+
1157
+
1158
+ <td class="default">
1159
+
1160
+ 5
1161
+
1162
+ </td>
1163
+
1164
+
1165
+ <td class="description last"><p>雪大小</p></td>
1166
+ </tr>
1167
+
1168
+
1169
+
1170
+
1171
+ <tr class="deep-level-1">
1172
+
1173
+ <td class="name"><code>scale</code></td>
1174
+
1175
+
1176
+ <td class="type">
1177
+
1178
+
1179
+ <span class="param-type">
1180
+
1181
+ Number
1182
+
1183
+ </span>
1184
+
1185
+
1186
+
1187
+
1188
+ </td>
1189
+
1190
+
1191
+ <td class="default">
1192
+
1193
+ 5
1194
+
1195
+ </td>
1196
+
1197
+
1198
+ <td class="description last"><p>雪规模</p></td>
1199
+ </tr>
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+ </tbody>
1208
+ </table>
1209
+ </div>
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+ <dl class="details">
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+ </dl>
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+ <div class='columns method-parameter'>
1268
+ <div class="column is-2"><label>返回值</label></div>
1269
+ <div class="column is-10">
1270
+
1271
+
1272
+
1273
+ <div class="columns">
1274
+
1275
+ <div class='param-desc column is-7'><p>雪后处理特效对象</p></div>
1276
+
1277
+
1278
+ <div class='column is-5 has-text-left'>
1279
+ <label>类型: </label>
1280
+
1281
+ <span class="param-type">
1282
+
1283
+ Cesium.PostProcessStage
1284
+
1285
+ </span>
1286
+
1287
+
1288
+
1289
+ </div>
1290
+
1291
+ </div>
1292
+
1293
+
1294
+ </div>
1295
+ </div>
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+ <h5>示例</h5>
1303
+
1304
+ <p class="code-caption"><h7 id='createSnowStage'>创建雪后处理特效对象</h7></p>
1305
+
1306
+
1307
+ <pre class="prettyprint"><code>const snow = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createSnowStage({
1308
+ viewer,
1309
+ size: 5,
1310
+ scale: 5
1311
+ }))
1312
+ snow.enabled = false // 关闭后处理特效
1313
+ snow.uniforms.size = 10 // 修改相关参数
1314
+ snow.uniforms.scale = 3 // 修改相关参数</code></pre>
1315
+
1316
+
1317
+
1318
+ </div>
1319
+
1320
+ </div>
1321
+ </div>
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+ </article>
1328
+
1329
+ </section>