@mapgis/webclient-cesium-plugin 17.8.1 → 17.10.9

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.
Files changed (227) hide show
  1. package/README.md +280 -482
  2. package/dist/esm/commonjsHelpers.js +1 -0
  3. package/dist/esm/s3m.js +1 -0
  4. package/dist/esm/webclient-cesium-plugin.js +1 -0
  5. package/dist/umd/webclient-cesium-plugin.min.js +1 -0
  6. package/{documention → documentation}/AlgorithmLib.html +169 -149
  7. package/{documention → documentation}/AngulationTool.html +85 -51
  8. package/{documention → documentation}/AnimationTool.html +30 -30
  9. package/{documention → documentation}/ArcGISMapServerImageryProvider.html +9 -13
  10. package/{documention → documentation}/ArcGISMapServerSingleImageryProvider.html +90 -30
  11. package/{documention → documentation}/ArcGISTileServerImageryProvider.html +17 -17
  12. package/{documention → documentation}/ArcGISVectorTileImageryProvider.html +21 -8
  13. package/{documention → documentation}/BaseImageryProvider.html +2 -2
  14. package/{documention → documentation}/Cesium.Material.html +2 -2
  15. package/{documention → documentation}/Cesium.Viewer.html +5 -5
  16. package/{documention → documentation}/Cesium3DTileset.html +43 -25
  17. package/{documention → documentation}/CesiumHeatmap.html +22 -19
  18. package/{documention/S3MTileset.html → documentation/CesiumNavigation.html} +52 -85
  19. package/{documention → documentation}/CesiumTerrainProvider.html +55 -15
  20. package/{documention/OpenWeatherImageryProvider.html → documentation/CircleWaveMaterialProperty.html} +75 -95
  21. package/{documention → documentation}/CollisionDetectionByRender.html +245 -88
  22. package/{documention → documentation}/CompatibleFunc.html +24 -33
  23. package/{documention → documentation}/CustomPrimitive.html +3 -5
  24. package/{documention → documentation}/CustomProjection.html +3 -3
  25. package/{documention → documentation}/CustomTilingScheme.html +35 -36
  26. package/{documention → documentation}/CutFillAnalysis.html +59 -27
  27. package/{documention → documentation}/CuttingTool.html +198 -103
  28. package/{documention → documentation}/Deferred.html +2 -2
  29. package/{documention → documentation}/DrawElement.html +418 -34
  30. package/{documention → documentation}/DrawTool.html +81 -29
  31. package/documentation/EditTool.html +2819 -0
  32. package/{documention → documentation}/FirstPersonPerspective.html +18 -10
  33. package/{documention → documentation}/FloodAnalysis.html +93 -23
  34. package/{documention → documentation}/FloodAnalysisReflection.html +18 -44
  35. package/documentation/FlowParticle.html +863 -0
  36. package/{documention → documentation}/Fluid.html +473 -74
  37. package/{documention → documentation}/FluidFoam.html +36 -16
  38. package/{documention → documentation}/FluidReflection.html +68 -15
  39. package/{documention → documentation}/FluidShadow.html +67 -14
  40. package/{documention → documentation}/FluidSourceCollection.html +14 -7
  41. package/{documention → documentation}/FluidSpecular.html +33 -14
  42. package/documentation/FluidSurfaceDistortion.html +682 -0
  43. package/documentation/FluidSurfaceFoam.html +1006 -0
  44. package/{documention → documentation}/FollowPerspective.html +15 -7
  45. package/{documention → documentation}/GeoJSONLayerUtil.html +38 -10
  46. package/documentation/GeoJSONLayerView.html +1353 -0
  47. package/{documention → documentation}/GlobeIndependentTranslucency.html +89 -6
  48. package/{documention → documentation}/GodPerspective.html +14 -6
  49. package/{documention → documentation}/Graphic.html +1053 -1042
  50. package/{documention → documentation}/GraphicTransformTool.html +65 -23
  51. package/{documention → documentation}/GraphicsLayer.html +359 -156
  52. package/{documention → documentation}/GraphicsLayerUtil.html +28 -10
  53. package/documentation/GraphicsLayerView.html +759 -0
  54. package/{documention/EditTool.html → documentation/HashMap.html} +253 -418
  55. package/{documention → documentation}/HeightLimited.html +54 -21
  56. package/documentation/IGSFeatureLayerUtil.html +840 -0
  57. package/documentation/IGSFeatureLayerView.html +1348 -0
  58. package/documentation/IGSMapImageLayerUtil.html +855 -0
  59. package/{documention/IGSFeatureLayerUtil.html → documentation/IGSMapImageLayerView.html} +68 -46
  60. package/documentation/IGSTileLayerView.html +658 -0
  61. package/{documention → documentation}/ISSceneLayerUtil.html +3 -3
  62. package/{documention → documentation}/KeyboardCameraController.html +54 -6
  63. package/documentation/LightningStorm.html +2073 -0
  64. package/documentation/MapGISClusterPrimitiveCollection.html +1050 -0
  65. package/{documention → documentation}/MapGISDynamicLabelCollection.html +370 -178
  66. package/{documention → documentation}/MapGISFeatureGridCollection.html +123 -89
  67. package/{documention → documentation}/MapGISImageServerImageryProvider.html +93 -71
  68. package/{documention → documentation}/MapGISImageServerSingleImageryProvider.html +140 -92
  69. package/{documention → documentation}/MapGISM3DSet.html +49 -33
  70. package/{documention → documentation}/MapGISMapServerImageryProvider.html +78 -87
  71. package/{documention → documentation}/MapGISMapServerSingleImageryProvider.html +111 -43
  72. package/{documention → documentation}/MapGISTerrainProvider.html +268 -208
  73. package/{documention → documentation}/MapGISTerrainService.html +124 -82
  74. package/{documention → documentation}/MapGISTileAvailability.html +104 -47
  75. package/{documention → documentation}/MapGISTileServerImageryProvider.html +76 -83
  76. package/{documention → documentation}/MapGISVectorTileImageryProvider.html +135 -115
  77. package/{documention → documentation}/MeasureAreaTool.html +53 -14
  78. package/{documention → documentation}/MeasureLengthTool.html +17 -14
  79. package/{documention → documentation}/MeasureSlopeTool.html +73 -34
  80. package/{documention/FlowParticle.html → documentation/ModelEditor.html} +132 -116
  81. package/{documention → documentation}/ModelFilterTool.html +27 -32
  82. package/{documention → documentation}/ModelTransformTool.html +195 -110
  83. package/{documention → documentation}/NavigationControl.html +25 -5
  84. package/{documention → documentation}/NavigationTool.html +36 -14
  85. package/{documention → documentation}/NormalPerspective.html +33 -7
  86. package/documentation/OpenWeatherImageryProvider.html +1133 -0
  87. package/{documention → documentation}/PointFluidSource.html +22 -13
  88. package/{documention → documentation}/PolylineTrailLinkMaterialProperty.html +104 -20
  89. package/{documention → documentation}/Popup.html +246 -63
  90. package/{documention/CesiumNavigation.html → documentation/PostProcessShaderBuilder.html} +10 -54
  91. package/{documention → documentation}/PostProcessStageLibrary.html +3127 -121
  92. package/{documention → documentation}/Promise.html +6 -6
  93. package/{documention → documentation}/ProviderBaseUrlRegExp.html +20 -4
  94. package/{documention → documentation}/Puddle.html +30 -9
  95. package/{documention → documentation}/RadarMaterialProperty.html +73 -18
  96. package/{documention → documentation}/ReImg.html +164 -15
  97. package/{documention → documentation}/RenderUtil.html +158 -6
  98. package/{documention → documentation}/ResetViewNavigationControl.html +28 -8
  99. package/{documention → documentation}/RiverGeometry.html +7 -7
  100. package/{documention → documentation}/RoamParticle.html +86 -79
  101. package/{documention → documentation}/RouteAnimationControl.html +37 -15
  102. package/{documention → documentation}/RouteAnimationLabel.html +39 -12
  103. package/{documention → documentation}/RouteAnimationModel.html +43 -16
  104. package/{documention → documentation}/RouteAnimationPath.html +156 -18
  105. package/{documention → documentation}/RouteAnimationPerspective.html +12 -3
  106. package/{documention → documentation}/RouteAnimationTool.html +244 -24
  107. package/documentation/S3MTileset.html +570 -0
  108. package/{documention → documentation}/SSR.html +20 -39
  109. package/{documention → documentation}/SceneView.html +615 -419
  110. package/documentation/SceneViewUtil.html +1253 -0
  111. package/documentation/Screenshot.html +964 -0
  112. package/{documention → documentation}/SelectTool.html +31 -77
  113. package/{documention → documentation}/ShadowRateAnalysis.html +236 -54
  114. package/{documention → documentation}/ShadowRateDrawCommand.html +18 -6
  115. package/{documention → documentation}/SingleImageryProvider.html +32 -10
  116. package/{documention → documentation}/SketchEditor.html +280 -127
  117. package/documentation/SkyLineAnalysis.html +576 -0
  118. package/{documention → documentation}/StableParticle.html +165 -46
  119. package/{documention → documentation}/Style.html +249 -249
  120. package/{documention → documentation}/TerrainAnalyse.html +391 -105
  121. package/{documention → documentation}/TerrainExcavateTool.html +99 -3
  122. package/{documention → documentation}/TerrainProfile.html +198 -56
  123. package/{documention → documentation}/ThemeManager.html +93 -42
  124. package/{documention → documentation}/Tooltip.html +35 -18
  125. package/documentation/TransformTool.html +1010 -0
  126. package/{documention → documentation}/TriangulationTool.html +122 -83
  127. package/documentation/UnderfluidCaustic.html +843 -0
  128. package/documentation/UnderfluidDistortion.html +600 -0
  129. package/documentation/UnderfluidFog.html +843 -0
  130. package/documentation/UnderfluidGodRay.html +843 -0
  131. package/documentation/UnderwaterCaustic.html +867 -0
  132. package/documentation/UnderwaterDistortion.html +578 -0
  133. package/documentation/UnderwaterFog.html +867 -0
  134. package/documentation/UnderwaterGodRay.html +821 -0
  135. package/{documention → documentation}/UrlTemplateImageryProvider.html +21 -9
  136. package/{documention → documentation}/UserInterfaceControl.html +28 -9
  137. package/documentation/VectorTileLayerUtil.html +1364 -0
  138. package/{documention → documentation}/VisiblityAnalysis.html +15 -12
  139. package/{documention → documentation}/VolumeCloud.html +113 -21
  140. package/{documention → documentation}/VolumeFluidSource.html +24 -8
  141. package/{documention → documentation}/WFSLayerUtil.html +39 -10
  142. package/documentation/WFSLayerView.html +1353 -0
  143. package/documentation/WMSLayerUtil.html +879 -0
  144. package/documentation/WMTSLayerUtil.html +877 -0
  145. package/documentation/WaterDepth.html +583 -0
  146. package/{documention → documentation}/WaterReflection.html +29 -26
  147. package/documentation/WaterSurface.html +2555 -0
  148. package/{documention/Underwater.html → documentation/WaterSurfaceDistortion.html} +79 -81
  149. package/documentation/WaterSurfaceFoam.html +1029 -0
  150. package/documentation/WaterSurfaceSSR.html +867 -0
  151. package/{documention → documentation}/WebMapServiceImageryProvider.html +8 -12
  152. package/{documention → documentation}/WebMapServiceSingleImageryProvider.html +94 -32
  153. package/{documention → documentation}/WebMapTileServiceImageryProvider.html +10 -15
  154. package/documentation/WebTileLayerUtil.html +877 -0
  155. package/{documention → documentation}/Wind3D.html +133 -54
  156. package/{documention → documentation}/ZoomNavigationControl.html +145 -9
  157. package/documentation/fonts/glyphicons-halflings-regular.svg +543 -0
  158. package/{documention → documentation}/global.html +14130 -2719
  159. package/{documention → documentation}/index.html +1 -1
  160. package/{documention → documentation}/initializeOptions.html +2 -2
  161. package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +96 -95
  162. package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +47 -46
  163. package/{documention → documentation}/module.exports_module.exports.html +2 -2
  164. package/{documention → documentation}/nav.html +3267 -1392
  165. package/documentation/nav.json +320 -0
  166. package/documentation/styles/adminlte/AdminLTE.min.css +4966 -0
  167. package/documentation/styles/adminlte/skin-blue.min.css +135 -0
  168. package/documentation/styles/bootstrap.min.css +7005 -0
  169. package/documentation/styles/common.css +173 -0
  170. package/documentation/styles/examples.css +119 -0
  171. package/{documention → documentation}/styles/font-awesome.css +692 -687
  172. package/documentation/styles/header.css +558 -0
  173. package/documentation/styles/jaguar.css +551 -0
  174. package/{documention → documentation}/styles/prettify-tomorrow.css +59 -28
  175. package/{documention → documentation}/styles/style.customize.css +83 -99
  176. package/package.json +42 -22
  177. package/dist/es5/webclient-cesium-plugin.min.js +0 -77
  178. package/dist/es5/webclient-common.min.js +0 -159
  179. package/dist/webclient-cesium-plugin-es6.min.js +0 -77
  180. package/documention/CircleWaveMaterialProperty.html +0 -382
  181. package/documention/DynamicEntityVisualizer.html +0 -348
  182. package/documention/DynamicLabelLayer.html +0 -1841
  183. package/documention/GroundPrimitiveLayer.html +0 -1675
  184. package/documention/HashMap.html +0 -4197
  185. package/documention/ModelEditor.html +0 -374
  186. package/documention/SceneViewCesium.html +0 -5544
  187. package/documention/Screenshot.html +0 -773
  188. package/documention/SketchEditorCesium.html +0 -1571
  189. package/documention/createColorTexture.html +0 -369
  190. package/documention/fonts/glyphicons-halflings-regular.svg +0 -288
  191. package/documention/isCounterClockwise.html +0 -760
  192. package/documention/scripts/app.min.js +0 -1
  193. package/documention/scripts/jquery.min.map +0 -1
  194. package/documention/scripts/search.js +0 -20
  195. package/documention/scripts/sideBar.js +0 -228
  196. package/documention/scripts/underscore-min.map +0 -1
  197. package/documention/styles/adminlte/AdminLTE.min.css +0 -7
  198. package/documention/styles/adminlte/skin-blue.min.css +0 -1
  199. package/documention/styles/anchor.png +0 -0
  200. package/documention/styles/app.min.css +0 -1
  201. package/documention/styles/bootstrap.min.css +0 -6
  202. package/documention/styles/c.png +0 -0
  203. package/documention/styles/common.css +0 -175
  204. package/documention/styles/examples.css +0 -116
  205. package/documention/styles/header.css +0 -556
  206. package/documention/styles/iframe.css +0 -29
  207. package/documention/styles/jaguar.css +0 -553
  208. package/documention/styles/m.png +0 -0
  209. package/documention/styles/reset.css +0 -44
  210. package/documention/styles/up-arrow.png +0 -0
  211. package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +0 -162
  212. /package/{documention → documentation}/fonts/fontawesome-webfont.woff2 +0 -0
  213. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.eot +0 -0
  214. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.ttf +0 -0
  215. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff +0 -0
  216. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff2 +0 -0
  217. /package/{documention → documentation}/scripts/adminlte/app.min.js +0 -0
  218. /package/{documention → documentation}/scripts/bootstrap.min.js +0 -0
  219. /package/{documention → documentation}/scripts/jquery.min.js +0 -0
  220. /package/{documention → documentation}/scripts/linenumber.js +0 -0
  221. /package/{documention → documentation}/scripts/main.js +0 -0
  222. /package/{documention → documentation}/scripts/prettify/Apache-License-2.0.txt +0 -0
  223. /package/{documention → documentation}/scripts/prettify/lang-css.js +0 -0
  224. /package/{documention → documentation}/scripts/prettify/prettify.js +0 -0
  225. /package/{documention → documentation}/scripts/underscore-min.js +0 -0
  226. /package/{documention → documentation}/styles/adminlte/font-awesome.min.css +0 -0
  227. /package/{documention → documentation}/styles/prettify-jsdoc.css +0 -0
@@ -88,7 +88,7 @@
88
88
 
89
89
 
90
90
  <div class="tag-source">
91
- engineExtensions/effects/PostProcessStageLibrary.js, line 13
91
+ engineExtensions/effects/PostProcessStageLibrary.js, line 25
92
92
  </div>
93
93
 
94
94
  </div>
@@ -148,12 +148,19 @@
148
148
 
149
149
  <h5>Example</h5>
150
150
 
151
+ <p class="code-caption"><h7>使用后处理阶段扩展库</h7></p>
152
+
151
153
 
152
154
 
153
155
  <pre class="prettyprint"><code>// ES5引入方式
154
- const { PostProcessStageLibrary } = zondy
156
+ const { PostProcessStageLibrary } = zondy.cesium
157
+
155
158
  // ES6引入方式
156
- import { PostProcessStageLibrary } from "@mapgis/webclient-cesium-plugin"</code></pre>
159
+ import { PostProcessStageLibrary } from "@mapgis/webclient-cesium-plugin"
160
+
161
+ const snowStage = viewer.scene.postProcessStages.add(
162
+ PostProcessStageLibrary.createSnowStage({ viewer })
163
+ )</code></pre>
157
164
 
158
165
 
159
166
 
@@ -190,7 +197,7 @@ import { PostProcessStageLibrary } from "@mapgis/webclient-cesium-plugin"</code>
190
197
 
191
198
 
192
199
  <div class="tag-source">
193
- engineExtensions/effects/PostProcessStageLibrary.js, line 497
200
+ engineExtensions/effects/PostProcessStageLibrary.js, line 499
194
201
  </div>
195
202
 
196
203
  </div>
@@ -549,7 +556,7 @@ atmosphereFog.uniforms.lightDensity = 0.4 // 修改相关参数</code></pre>
549
556
 
550
557
 
551
558
  <div class="tag-source">
552
- engineExtensions/effects/PostProcessStageLibrary.js, line 545
559
+ engineExtensions/effects/PostProcessStageLibrary.js, line 541
553
560
  </div>
554
561
 
555
562
  </div>
@@ -836,7 +843,7 @@ customAtmosphere.uniforms.height = 0.5 // 修改相关参数</code></pre>
836
843
 
837
844
 
838
845
  <div class="tag-source">
839
- engineExtensions/effects/PostProcessStageLibrary.js, line 357
846
+ engineExtensions/effects/PostProcessStageLibrary.js, line 353
840
847
  </div>
841
848
 
842
849
  </div>
@@ -1268,7 +1275,7 @@ dof.uniforms.backFocalDistance = 400 // 修改相关参数</code></pre>
1268
1275
 
1269
1276
 
1270
1277
  <div class="tag-source">
1271
- engineExtensions/effects/PostProcessStageLibrary.js, line 138
1278
+ engineExtensions/effects/PostProcessStageLibrary.js, line 155
1272
1279
  </div>
1273
1280
 
1274
1281
  </div>
@@ -1592,7 +1599,7 @@ fog.uniforms.alpha = 0.7 // 修改相关参数</code></pre>
1592
1599
 
1593
1600
 
1594
1601
  <div class="tag-source">
1595
- engineExtensions/effects/PostProcessStageLibrary.js, line 262
1602
+ engineExtensions/effects/PostProcessStageLibrary.js, line 270
1596
1603
  </div>
1597
1604
 
1598
1605
  </div>
@@ -1917,7 +1924,7 @@ godRay.uniforms.sampleCount = 400 // 修改相关参数</code></pre>
1917
1924
 
1918
1925
 
1919
1926
  <div class="tag-source">
1920
- engineExtensions/effects/PostProcessStageLibrary.js, line 217
1927
+ engineExtensions/effects/PostProcessStageLibrary.js, line 228
1921
1928
  </div>
1922
1929
 
1923
1930
  </div>
@@ -2242,7 +2249,7 @@ heightFog.uniforms.height = 700 // 修改相关参数</code></pre>
2242
2249
 
2243
2250
 
2244
2251
  <div class="tag-source">
2245
- engineExtensions/effects/PostProcessStageLibrary.js, line 455
2252
+ engineExtensions/effects/PostProcessStageLibrary.js, line 443
2246
2253
  </div>
2247
2254
 
2248
2255
  </div>
@@ -2462,6 +2469,42 @@ heightFog.uniforms.height = 700 // 修改相关参数</code></pre>
2462
2469
  </tr>
2463
2470
 
2464
2471
 
2472
+
2473
+ <tr>
2474
+
2475
+ <td class="name"><code>maxVisibleHeight</code></td>
2476
+
2477
+
2478
+ <td class="type">
2479
+
2480
+
2481
+ <span class="param-type">Number</span>
2482
+
2483
+
2484
+
2485
+ </td>
2486
+
2487
+
2488
+ <td class="default">
2489
+
2490
+ Infinity
2491
+
2492
+ </td>
2493
+
2494
+
2495
+ <td class="description last">
2496
+
2497
+
2498
+ <span class="optional"> 可选</span>
2499
+
2500
+
2501
+
2502
+
2503
+
2504
+ <p>镜头光斑的最大可视高度,当相机高度超过此值时不显示光斑效果</p></td>
2505
+ </tr>
2506
+
2507
+
2465
2508
  </tbody>
2466
2509
  </table>
2467
2510
  </td>
@@ -2566,7 +2609,7 @@ lensFlare.uniforms.intensity = 2 // 修改相关参数</code></pre>
2566
2609
 
2567
2610
 
2568
2611
  <div class="tag-source">
2569
- engineExtensions/effects/PostProcessStageLibrary.js, line 94
2612
+ engineExtensions/effects/PostProcessStageLibrary.js, line 111
2570
2613
  </div>
2571
2614
 
2572
2615
  </div>
@@ -2993,14 +3036,14 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
2993
3036
 
2994
3037
  <dt>
2995
3038
  <div class="nameContainer">
2996
- <h4 class="name" id=".createSnowpackStage">
3039
+ <h4 class="name" id=".createSnowStage">
2997
3040
 
2998
- PostProcessStageLibrary.createSnowpackStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
3041
+ PostProcessStageLibrary.createSnowStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
2999
3042
  </h4>
3000
3043
 
3001
3044
 
3002
3045
  <div class="tag-source">
3003
- engineExtensions/effects/PostProcessStageLibrary.js, line 181
3046
+ engineExtensions/effects/PostProcessStageLibrary.js, line 67
3004
3047
  </div>
3005
3048
 
3006
3049
  </div>
@@ -3011,7 +3054,7 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
3011
3054
 
3012
3055
 
3013
3056
  <div class="description">
3014
- <p>创建积雪后处理特效对象</p>
3057
+ <p>创建降雪后处理特效对象</p>
3015
3058
  </div>
3016
3059
 
3017
3060
 
@@ -3115,7 +3158,7 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
3115
3158
 
3116
3159
  <tr>
3117
3160
 
3118
- <td class="name"><code>density</code></td>
3161
+ <td class="name"><code>size</code></td>
3119
3162
 
3120
3163
 
3121
3164
  <td class="type">
@@ -3130,7 +3173,7 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
3130
3173
 
3131
3174
  <td class="default">
3132
3175
 
3133
- 0.15
3176
+ 5
3134
3177
 
3135
3178
  </td>
3136
3179
 
@@ -3144,14 +3187,14 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
3144
3187
 
3145
3188
 
3146
3189
 
3147
- <p>积雪的厚度程度</p></td>
3190
+ <p>雪花的大小</p></td>
3148
3191
  </tr>
3149
3192
 
3150
3193
 
3151
3194
 
3152
3195
  <tr>
3153
3196
 
3154
- <td class="name"><code>alpha</code></td>
3197
+ <td class="name"><code>scale</code></td>
3155
3198
 
3156
3199
 
3157
3200
  <td class="type">
@@ -3166,7 +3209,7 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
3166
3209
 
3167
3210
  <td class="default">
3168
3211
 
3169
- 1.0
3212
+ 5
3170
3213
 
3171
3214
  </td>
3172
3215
 
@@ -3180,7 +3223,79 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
3180
3223
 
3181
3224
 
3182
3225
 
3183
- <p>积雪的透明度</p></td>
3226
+ <p>降雪场景的缩放系数</p></td>
3227
+ </tr>
3228
+
3229
+
3230
+
3231
+ <tr>
3232
+
3233
+ <td class="name"><code>speed</code></td>
3234
+
3235
+
3236
+ <td class="type">
3237
+
3238
+
3239
+ <span class="param-type">Number</span>
3240
+
3241
+
3242
+
3243
+ </td>
3244
+
3245
+
3246
+ <td class="default">
3247
+
3248
+ 5
3249
+
3250
+ </td>
3251
+
3252
+
3253
+ <td class="description last">
3254
+
3255
+
3256
+ <span class="optional"> 可选</span>
3257
+
3258
+
3259
+
3260
+
3261
+
3262
+ <p>雪花下降的速度</p></td>
3263
+ </tr>
3264
+
3265
+
3266
+
3267
+ <tr>
3268
+
3269
+ <td class="name"><code>showIceFog</code></td>
3270
+
3271
+
3272
+ <td class="type">
3273
+
3274
+
3275
+ <span class="param-type">Number</span>
3276
+
3277
+
3278
+
3279
+ </td>
3280
+
3281
+
3282
+ <td class="default">
3283
+
3284
+ true
3285
+
3286
+ </td>
3287
+
3288
+
3289
+ <td class="description last">
3290
+
3291
+
3292
+ <span class="optional"> 可选</span>
3293
+
3294
+
3295
+
3296
+
3297
+
3298
+ <p>是否开启场景冰雾效果(该效果表达的是一种悬浮在空气中的大量微小冰晶组成的雾,可以使降雪场景更加逼真)</p></td>
3184
3299
  </tr>
3185
3300
 
3186
3301
 
@@ -3251,7 +3366,7 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
3251
3366
 
3252
3367
 
3253
3368
  </td>
3254
- <td class="description last">积雪后处理特效对象</td>
3369
+ <td class="description last">降雪后处理特效对象</td>
3255
3370
  </tr>
3256
3371
 
3257
3372
  </tbody>
@@ -3262,17 +3377,20 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
3262
3377
 
3263
3378
  <h5>Example</h5>
3264
3379
 
3265
- <p class="code-caption"><h7 id='createSnowpackStage'>创建积雪后处理特效对象</h7></p>
3380
+ <p class="code-caption"><h7 id='createSnowStage'>创建降雪后处理特效对象</h7></p>
3266
3381
 
3267
3382
 
3268
3383
 
3269
- <pre class="prettyprint"><code>const snowpack = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createSnowpackStage({
3384
+ <pre class="prettyprint"><code>const snow = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createSnowStage({
3270
3385
  viewer,
3271
- density: 0.7,
3272
- alpha: 1.0,
3386
+ size: 5,
3387
+ scale: 5,
3388
+ speed: 5
3273
3389
  }))
3274
- snowpack.enabled = false // 关闭后处理特效
3275
- snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3390
+ snow.enabled = false // 关闭后处理特效
3391
+ snow.uniforms.size = 10 // 修改相关参数
3392
+ snow.uniforms.scale = 3 // 修改相关参数
3393
+ snow.uniforms.speed = 3 // 修改相关参数</code></pre>
3276
3394
 
3277
3395
 
3278
3396
 
@@ -3282,14 +3400,14 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3282
3400
 
3283
3401
  <dt>
3284
3402
  <div class="nameContainer">
3285
- <h4 class="name" id=".createSnowStage">
3403
+ <h4 class="name" id=".createSnowpackStage">
3286
3404
 
3287
- PostProcessStageLibrary.createSnowStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
3405
+ PostProcessStageLibrary.createSnowpackStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
3288
3406
  </h4>
3289
3407
 
3290
3408
 
3291
3409
  <div class="tag-source">
3292
- engineExtensions/effects/PostProcessStageLibrary.js, line 50
3410
+ engineExtensions/effects/PostProcessStageLibrary.js, line 192
3293
3411
  </div>
3294
3412
 
3295
3413
  </div>
@@ -3300,7 +3418,7 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3300
3418
 
3301
3419
 
3302
3420
  <div class="description">
3303
- <p>创建降雪后处理特效对象</p>
3421
+ <p>创建积雪后处理特效对象</p>
3304
3422
  </div>
3305
3423
 
3306
3424
 
@@ -3404,79 +3522,7 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3404
3522
 
3405
3523
  <tr>
3406
3524
 
3407
- <td class="name"><code>size</code></td>
3408
-
3409
-
3410
- <td class="type">
3411
-
3412
-
3413
- <span class="param-type">Number</span>
3414
-
3415
-
3416
-
3417
- </td>
3418
-
3419
-
3420
- <td class="default">
3421
-
3422
- 5
3423
-
3424
- </td>
3425
-
3426
-
3427
- <td class="description last">
3428
-
3429
-
3430
- <span class="optional"> 可选</span>
3431
-
3432
-
3433
-
3434
-
3435
-
3436
- <p>雪花的大小</p></td>
3437
- </tr>
3438
-
3439
-
3440
-
3441
- <tr>
3442
-
3443
- <td class="name"><code>scale</code></td>
3444
-
3445
-
3446
- <td class="type">
3447
-
3448
-
3449
- <span class="param-type">Number</span>
3450
-
3451
-
3452
-
3453
- </td>
3454
-
3455
-
3456
- <td class="default">
3457
-
3458
- 5
3459
-
3460
- </td>
3461
-
3462
-
3463
- <td class="description last">
3464
-
3465
-
3466
- <span class="optional"> 可选</span>
3467
-
3468
-
3469
-
3470
-
3471
-
3472
- <p>降雪场景的缩放系数</p></td>
3473
- </tr>
3474
-
3475
-
3476
-
3477
- <tr>
3478
-
3479
- <td class="name"><code>speed</code></td>
3525
+ <td class="name"><code>density</code></td>
3480
3526
 
3481
3527
 
3482
3528
  <td class="type">
@@ -3491,7 +3537,7 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3491
3537
 
3492
3538
  <td class="default">
3493
3539
 
3494
- 5
3540
+ 0.15
3495
3541
 
3496
3542
  </td>
3497
3543
 
@@ -3505,14 +3551,14 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3505
3551
 
3506
3552
 
3507
3553
 
3508
- <p>雪花下降的速度</p></td>
3554
+ <p>积雪的厚度程度</p></td>
3509
3555
  </tr>
3510
3556
 
3511
3557
 
3512
3558
 
3513
3559
  <tr>
3514
3560
 
3515
- <td class="name"><code>showIceFog</code></td>
3561
+ <td class="name"><code>alpha</code></td>
3516
3562
 
3517
3563
 
3518
3564
  <td class="type">
@@ -3527,7 +3573,7 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3527
3573
 
3528
3574
  <td class="default">
3529
3575
 
3530
- true
3576
+ 1.0
3531
3577
 
3532
3578
  </td>
3533
3579
 
@@ -3541,7 +3587,7 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3541
3587
 
3542
3588
 
3543
3589
 
3544
- <p>是否开启场景冰雾效果(该效果表达的是一种悬浮在空气中的大量微小冰晶组成的雾,可以使降雪场景更加逼真)</p></td>
3590
+ <p>积雪的透明度</p></td>
3545
3591
  </tr>
3546
3592
 
3547
3593
 
@@ -3612,7 +3658,7 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3612
3658
 
3613
3659
 
3614
3660
  </td>
3615
- <td class="description last">降雪后处理特效对象</td>
3661
+ <td class="description last">积雪后处理特效对象</td>
3616
3662
  </tr>
3617
3663
 
3618
3664
  </tbody>
@@ -3623,20 +3669,2980 @@ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3623
3669
 
3624
3670
  <h5>Example</h5>
3625
3671
 
3626
- <p class="code-caption"><h7 id='createSnowStage'>创建降雪后处理特效对象</h7></p>
3672
+ <p class="code-caption"><h7 id='createSnowpackStage'>创建积雪后处理特效对象</h7></p>
3627
3673
 
3628
3674
 
3629
3675
 
3630
- <pre class="prettyprint"><code>const snow = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createSnowStage({
3676
+ <pre class="prettyprint"><code>const snowpack = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createSnowpackStage({
3631
3677
  viewer,
3632
- size: 5,
3633
- scale: 5,
3634
- speed: 5
3678
+ density: 0.7,
3679
+ alpha: 1.0,
3635
3680
  }))
3636
- snow.enabled = false // 关闭后处理特效
3637
- snow.uniforms.size = 10 // 修改相关参数
3638
- snow.uniforms.scale = 3 // 修改相关参数
3639
- snow.uniforms.speed = 3 // 修改相关参数</code></pre>
3681
+ snowpack.enabled = false // 关闭后处理特效
3682
+ snowpack.uniforms.density = 0.5 // 修改相关参数</code></pre>
3683
+
3684
+
3685
+
3686
+ </dd>
3687
+
3688
+
3689
+
3690
+ <dt>
3691
+ <div class="nameContainer">
3692
+ <h4 class="name" id=".createUnderwaterCausticStage">
3693
+
3694
+ PostProcessStageLibrary.createUnderwaterCausticStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
3695
+ </h4>
3696
+
3697
+
3698
+ <div class="tag-source">
3699
+ engineExtensions/effects/PostProcessStageLibrary.js, line 639
3700
+ </div>
3701
+
3702
+ </div>
3703
+
3704
+
3705
+ </dt>
3706
+ <dd>
3707
+
3708
+
3709
+ <div class="description">
3710
+ <p>创建水下焦散后处理阶段</p>
3711
+ </div>
3712
+
3713
+
3714
+
3715
+
3716
+
3717
+
3718
+
3719
+
3720
+
3721
+ <table class="params">
3722
+ <thead>
3723
+ <tr>
3724
+
3725
+ <th>Name</th>
3726
+
3727
+
3728
+ <th>Type</th>
3729
+
3730
+
3731
+
3732
+ <th class="last">Description</th>
3733
+ </tr>
3734
+ </thead>
3735
+
3736
+ <tbody>
3737
+
3738
+
3739
+ <tr>
3740
+
3741
+ <td class="name"><code>options</code></td>
3742
+
3743
+
3744
+ <td class="type">
3745
+
3746
+
3747
+ <span class="param-type">Object</span>
3748
+
3749
+
3750
+
3751
+ </td>
3752
+
3753
+
3754
+
3755
+ <td class="description last">
3756
+
3757
+ <p>附加参数</p>
3758
+
3759
+
3760
+ <table class="params">
3761
+ <thead>
3762
+ <tr>
3763
+
3764
+ <th>Name</th>
3765
+
3766
+
3767
+ <th>Type</th>
3768
+
3769
+
3770
+ <th>Default</th>
3771
+
3772
+
3773
+ <th class="last">Description</th>
3774
+ </tr>
3775
+ </thead>
3776
+
3777
+ <tbody>
3778
+
3779
+
3780
+ <tr>
3781
+
3782
+ <td class="name"><code>viewer</code></td>
3783
+
3784
+
3785
+ <td class="type">
3786
+
3787
+
3788
+ <span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
3789
+
3790
+
3791
+
3792
+ </td>
3793
+
3794
+
3795
+ <td class="default">
3796
+
3797
+ </td>
3798
+
3799
+
3800
+ <td class="description last">
3801
+
3802
+
3803
+
3804
+
3805
+
3806
+
3807
+ <p>场景视图对象</p></td>
3808
+ </tr>
3809
+
3810
+
3811
+
3812
+ <tr>
3813
+
3814
+ <td class="name"><code>intensity</code></td>
3815
+
3816
+
3817
+ <td class="type">
3818
+
3819
+
3820
+ <span class="param-type">number</span>
3821
+
3822
+
3823
+
3824
+ </td>
3825
+
3826
+
3827
+ <td class="default">
3828
+
3829
+ 1.0
3830
+
3831
+ </td>
3832
+
3833
+
3834
+ <td class="description last">
3835
+
3836
+
3837
+ <span class="optional"> 可选</span>
3838
+
3839
+
3840
+
3841
+
3842
+
3843
+ <p>焦散强度。</p></td>
3844
+ </tr>
3845
+
3846
+
3847
+
3848
+ <tr>
3849
+
3850
+ <td class="name"><code>scale</code></td>
3851
+
3852
+
3853
+ <td class="type">
3854
+
3855
+
3856
+ <span class="param-type">number</span>
3857
+
3858
+
3859
+
3860
+ </td>
3861
+
3862
+
3863
+ <td class="default">
3864
+
3865
+ 0.003
3866
+
3867
+ </td>
3868
+
3869
+
3870
+ <td class="description last">
3871
+
3872
+
3873
+ <span class="optional"> 可选</span>
3874
+
3875
+
3876
+
3877
+
3878
+
3879
+ <p>焦散纹理缩放。</p></td>
3880
+ </tr>
3881
+
3882
+
3883
+
3884
+ <tr>
3885
+
3886
+ <td class="name"><code>speed</code></td>
3887
+
3888
+
3889
+ <td class="type">
3890
+
3891
+
3892
+ <span class="param-type">number</span>
3893
+
3894
+
3895
+
3896
+ </td>
3897
+
3898
+
3899
+ <td class="default">
3900
+
3901
+ 0.15
3902
+
3903
+ </td>
3904
+
3905
+
3906
+ <td class="description last">
3907
+
3908
+
3909
+ <span class="optional"> 可选</span>
3910
+
3911
+
3912
+
3913
+
3914
+
3915
+ <p>焦散动画速度。</p></td>
3916
+ </tr>
3917
+
3918
+
3919
+
3920
+ <tr>
3921
+
3922
+ <td class="name"><code>maxVisibleDistance</code></td>
3923
+
3924
+
3925
+ <td class="type">
3926
+
3927
+
3928
+ <span class="param-type">number</span>
3929
+
3930
+
3931
+
3932
+ </td>
3933
+
3934
+
3935
+ <td class="default">
3936
+
3937
+ 5000.0
3938
+
3939
+ </td>
3940
+
3941
+
3942
+ <td class="description last">
3943
+
3944
+
3945
+ <span class="optional"> 可选</span>
3946
+
3947
+
3948
+
3949
+
3950
+
3951
+ <p>最大可视距离,超过此距离焦散效果将逐渐消失。</p></td>
3952
+ </tr>
3953
+
3954
+
3955
+
3956
+ <tr>
3957
+
3958
+ <td class="name"><code>waterLevel</code></td>
3959
+
3960
+
3961
+ <td class="type">
3962
+
3963
+
3964
+ <span class="param-type">number</span>
3965
+
3966
+
3967
+
3968
+ </td>
3969
+
3970
+
3971
+ <td class="default">
3972
+
3973
+ 0
3974
+
3975
+ </td>
3976
+
3977
+
3978
+ <td class="description last">
3979
+
3980
+
3981
+ <span class="optional"> 可选</span>
3982
+
3983
+
3984
+
3985
+
3986
+
3987
+ <p>水面高度。</p></td>
3988
+ </tr>
3989
+
3990
+
3991
+
3992
+ <tr>
3993
+
3994
+ <td class="name"><code>normalTexture</code></td>
3995
+
3996
+
3997
+ <td class="type">
3998
+
3999
+
4000
+ <span class="param-type">Cesium.Texture</span>
4001
+
4002
+
4003
+
4004
+ </td>
4005
+
4006
+
4007
+ <td class="default">
4008
+
4009
+ </td>
4010
+
4011
+
4012
+ <td class="description last">
4013
+
4014
+
4015
+ <span class="optional"> 可选</span>
4016
+
4017
+
4018
+
4019
+
4020
+
4021
+ <p>水面法线纹理。</p></td>
4022
+ </tr>
4023
+
4024
+
4025
+
4026
+ <tr>
4027
+
4028
+ <td class="name"><code>targetObject</code></td>
4029
+
4030
+
4031
+ <td class="type">
4032
+
4033
+
4034
+ <span class="param-type">Object</span>
4035
+
4036
+
4037
+
4038
+ </td>
4039
+
4040
+
4041
+ <td class="default">
4042
+
4043
+ </td>
4044
+
4045
+
4046
+ <td class="description last">
4047
+
4048
+
4049
+ <span class="optional"> 可选</span>
4050
+
4051
+
4052
+
4053
+
4054
+
4055
+ <p>目标对象(支持 Fluid 或 WaterSurface 类型,用于动态判断水下状态和获取水面高度)。</p></td>
4056
+ </tr>
4057
+
4058
+
4059
+ </tbody>
4060
+ </table>
4061
+ </td>
4062
+ </tr>
4063
+
4064
+
4065
+ </tbody>
4066
+ </table>
4067
+
4068
+
4069
+
4070
+ <dl class="details">
4071
+
4072
+
4073
+
4074
+
4075
+
4076
+
4077
+
4078
+
4079
+
4080
+
4081
+
4082
+
4083
+
4084
+
4085
+
4086
+
4087
+
4088
+
4089
+
4090
+
4091
+
4092
+ </dl>
4093
+
4094
+
4095
+
4096
+
4097
+
4098
+
4099
+
4100
+
4101
+
4102
+
4103
+
4104
+ <h5>Returns:</h5>
4105
+
4106
+
4107
+
4108
+ <table class="params">
4109
+ <thead>
4110
+ <tr>
4111
+
4112
+ <th>Type</th>
4113
+ <th class="last">Description</th>
4114
+ </tr>
4115
+ </thead>
4116
+ <tbody>
4117
+
4118
+ <tr>
4119
+
4120
+ <td class="type">
4121
+
4122
+ Cesium.PostProcessStage
4123
+
4124
+
4125
+ </td>
4126
+ <td class="description last">水下焦散后处理阶段实例。</td>
4127
+ </tr>
4128
+
4129
+ </tbody>
4130
+ </table>
4131
+
4132
+
4133
+
4134
+
4135
+ <h5>Example</h5>
4136
+
4137
+ <p class="code-caption"><h7 id='createUnderwaterCausticStage'>创建水下焦散后处理阶段</h7></p>
4138
+
4139
+
4140
+
4141
+ <pre class="prettyprint"><code>const caustic = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createUnderwaterCausticStage({
4142
+ viewer,
4143
+ intensity: 1.0,
4144
+ scale: 0.003
4145
+ }))
4146
+ caustic.enabled = false // 关闭后处理特效
4147
+ caustic.uniforms.intensity = 0.8 // 修改相关参数</code></pre>
4148
+
4149
+
4150
+
4151
+ </dd>
4152
+
4153
+
4154
+
4155
+ <dt>
4156
+ <div class="nameContainer">
4157
+ <h4 class="name" id=".createUnderwaterDistortionStage">
4158
+
4159
+ PostProcessStageLibrary.createUnderwaterDistortionStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
4160
+ </h4>
4161
+
4162
+
4163
+ <div class="tag-source">
4164
+ engineExtensions/effects/PostProcessStageLibrary.js, line 1106
4165
+ </div>
4166
+
4167
+ </div>
4168
+
4169
+
4170
+ </dt>
4171
+ <dd>
4172
+
4173
+
4174
+ <div class="description">
4175
+ <p>创建水下扭曲后处理阶段</p>
4176
+ </div>
4177
+
4178
+
4179
+
4180
+
4181
+
4182
+
4183
+
4184
+
4185
+
4186
+ <table class="params">
4187
+ <thead>
4188
+ <tr>
4189
+
4190
+ <th>Name</th>
4191
+
4192
+
4193
+ <th>Type</th>
4194
+
4195
+
4196
+
4197
+ <th class="last">Description</th>
4198
+ </tr>
4199
+ </thead>
4200
+
4201
+ <tbody>
4202
+
4203
+
4204
+ <tr>
4205
+
4206
+ <td class="name"><code>options</code></td>
4207
+
4208
+
4209
+ <td class="type">
4210
+
4211
+
4212
+ <span class="param-type">Object</span>
4213
+
4214
+
4215
+
4216
+ </td>
4217
+
4218
+
4219
+
4220
+ <td class="description last">
4221
+
4222
+ <p>附加参数</p>
4223
+
4224
+
4225
+ <table class="params">
4226
+ <thead>
4227
+ <tr>
4228
+
4229
+ <th>Name</th>
4230
+
4231
+
4232
+ <th>Type</th>
4233
+
4234
+
4235
+ <th>Default</th>
4236
+
4237
+
4238
+ <th class="last">Description</th>
4239
+ </tr>
4240
+ </thead>
4241
+
4242
+ <tbody>
4243
+
4244
+
4245
+ <tr>
4246
+
4247
+ <td class="name"><code>viewer</code></td>
4248
+
4249
+
4250
+ <td class="type">
4251
+
4252
+
4253
+ <span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
4254
+
4255
+
4256
+
4257
+ </td>
4258
+
4259
+
4260
+ <td class="default">
4261
+
4262
+ </td>
4263
+
4264
+
4265
+ <td class="description last">
4266
+
4267
+
4268
+
4269
+
4270
+
4271
+
4272
+ <p>场景视图对象</p></td>
4273
+ </tr>
4274
+
4275
+
4276
+
4277
+ <tr>
4278
+
4279
+ <td class="name"><code>distortionStrength</code></td>
4280
+
4281
+
4282
+ <td class="type">
4283
+
4284
+
4285
+ <span class="param-type">number</span>
4286
+
4287
+
4288
+
4289
+ </td>
4290
+
4291
+
4292
+ <td class="default">
4293
+
4294
+ 0.5
4295
+
4296
+ </td>
4297
+
4298
+
4299
+ <td class="description last">
4300
+
4301
+
4302
+ <span class="optional"> 可选</span>
4303
+
4304
+
4305
+
4306
+
4307
+
4308
+ <p>扭曲强度。</p></td>
4309
+ </tr>
4310
+
4311
+
4312
+
4313
+ <tr>
4314
+
4315
+ <td class="name"><code>waterLevel</code></td>
4316
+
4317
+
4318
+ <td class="type">
4319
+
4320
+
4321
+ <span class="param-type">number</span>
4322
+
4323
+
4324
+
4325
+ </td>
4326
+
4327
+
4328
+ <td class="default">
4329
+
4330
+ 0
4331
+
4332
+ </td>
4333
+
4334
+
4335
+ <td class="description last">
4336
+
4337
+
4338
+ <span class="optional"> 可选</span>
4339
+
4340
+
4341
+
4342
+
4343
+
4344
+ <p>水面高度。</p></td>
4345
+ </tr>
4346
+
4347
+
4348
+
4349
+ <tr>
4350
+
4351
+ <td class="name"><code>targetObject</code></td>
4352
+
4353
+
4354
+ <td class="type">
4355
+
4356
+
4357
+ <span class="param-type">Object</span>
4358
+
4359
+
4360
+
4361
+ </td>
4362
+
4363
+
4364
+ <td class="default">
4365
+
4366
+ </td>
4367
+
4368
+
4369
+ <td class="description last">
4370
+
4371
+
4372
+ <span class="optional"> 可选</span>
4373
+
4374
+
4375
+
4376
+
4377
+
4378
+ <p>目标对象(支持 Fluid 或 WaterSurface 类型,用于动态判断水下状态和获取水面高度)。</p></td>
4379
+ </tr>
4380
+
4381
+
4382
+ </tbody>
4383
+ </table>
4384
+ </td>
4385
+ </tr>
4386
+
4387
+
4388
+ </tbody>
4389
+ </table>
4390
+
4391
+
4392
+
4393
+ <dl class="details">
4394
+
4395
+
4396
+
4397
+
4398
+
4399
+
4400
+
4401
+
4402
+
4403
+
4404
+
4405
+
4406
+
4407
+
4408
+
4409
+
4410
+
4411
+
4412
+
4413
+
4414
+
4415
+ </dl>
4416
+
4417
+
4418
+
4419
+
4420
+
4421
+
4422
+
4423
+
4424
+
4425
+
4426
+
4427
+ <h5>Returns:</h5>
4428
+
4429
+
4430
+
4431
+ <table class="params">
4432
+ <thead>
4433
+ <tr>
4434
+
4435
+ <th>Type</th>
4436
+ <th class="last">Description</th>
4437
+ </tr>
4438
+ </thead>
4439
+ <tbody>
4440
+
4441
+ <tr>
4442
+
4443
+ <td class="type">
4444
+
4445
+ Cesium.PostProcessStage
4446
+
4447
+
4448
+ </td>
4449
+ <td class="description last">水下扭曲后处理阶段实例。</td>
4450
+ </tr>
4451
+
4452
+ </tbody>
4453
+ </table>
4454
+
4455
+
4456
+
4457
+
4458
+ <h5>Example</h5>
4459
+
4460
+ <p class="code-caption"><h7 id='createUnderwaterDistortionStage'>创建水下扭曲后处理阶段</h7></p>
4461
+
4462
+
4463
+
4464
+ <pre class="prettyprint"><code>const distortion = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createUnderwaterDistortionStage({
4465
+ viewer,
4466
+ distortionStrength: 0.5
4467
+ }))
4468
+ distortion.enabled = false // 关闭后处理特效
4469
+ distortion.uniforms.distortionStrength = 0.8 // 修改相关参数</code></pre>
4470
+
4471
+
4472
+
4473
+ </dd>
4474
+
4475
+
4476
+
4477
+ <dt>
4478
+ <div class="nameContainer">
4479
+ <h4 class="name" id=".createUnderwaterFogStage">
4480
+
4481
+ PostProcessStageLibrary.createUnderwaterFogStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
4482
+ </h4>
4483
+
4484
+
4485
+ <div class="tag-source">
4486
+ engineExtensions/effects/PostProcessStageLibrary.js, line 831
4487
+ </div>
4488
+
4489
+ </div>
4490
+
4491
+
4492
+ </dt>
4493
+ <dd>
4494
+
4495
+
4496
+ <div class="description">
4497
+ <p>创建水下雾后处理阶段</p>
4498
+ </div>
4499
+
4500
+
4501
+
4502
+
4503
+
4504
+
4505
+
4506
+
4507
+
4508
+ <table class="params">
4509
+ <thead>
4510
+ <tr>
4511
+
4512
+ <th>Name</th>
4513
+
4514
+
4515
+ <th>Type</th>
4516
+
4517
+
4518
+
4519
+ <th class="last">Description</th>
4520
+ </tr>
4521
+ </thead>
4522
+
4523
+ <tbody>
4524
+
4525
+
4526
+ <tr>
4527
+
4528
+ <td class="name"><code>options</code></td>
4529
+
4530
+
4531
+ <td class="type">
4532
+
4533
+
4534
+ <span class="param-type">Object</span>
4535
+
4536
+
4537
+
4538
+ </td>
4539
+
4540
+
4541
+
4542
+ <td class="description last">
4543
+
4544
+ <p>附加参数</p>
4545
+
4546
+
4547
+ <table class="params">
4548
+ <thead>
4549
+ <tr>
4550
+
4551
+ <th>Name</th>
4552
+
4553
+
4554
+ <th>Type</th>
4555
+
4556
+
4557
+ <th>Default</th>
4558
+
4559
+
4560
+ <th class="last">Description</th>
4561
+ </tr>
4562
+ </thead>
4563
+
4564
+ <tbody>
4565
+
4566
+
4567
+ <tr>
4568
+
4569
+ <td class="name"><code>viewer</code></td>
4570
+
4571
+
4572
+ <td class="type">
4573
+
4574
+
4575
+ <span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
4576
+
4577
+
4578
+
4579
+ </td>
4580
+
4581
+
4582
+ <td class="default">
4583
+
4584
+ </td>
4585
+
4586
+
4587
+ <td class="description last">
4588
+
4589
+
4590
+
4591
+
4592
+
4593
+
4594
+ <p>场景视图对象</p></td>
4595
+ </tr>
4596
+
4597
+
4598
+
4599
+ <tr>
4600
+
4601
+ <td class="name"><code>nearFogColor</code></td>
4602
+
4603
+
4604
+ <td class="type">
4605
+
4606
+
4607
+ <span class="param-type">Cesium.Color</span>
4608
+
4609
+
4610
+
4611
+ </td>
4612
+
4613
+
4614
+ <td class="default">
4615
+
4616
+ Cesium.Color.fromBytes(13, 115, 166)
4617
+
4618
+ </td>
4619
+
4620
+
4621
+ <td class="description last">
4622
+
4623
+
4624
+ <span class="optional"> 可选</span>
4625
+
4626
+
4627
+
4628
+
4629
+
4630
+ <p>近处雾颜色。</p></td>
4631
+ </tr>
4632
+
4633
+
4634
+
4635
+ <tr>
4636
+
4637
+ <td class="name"><code>farFogColor</code></td>
4638
+
4639
+
4640
+ <td class="type">
4641
+
4642
+
4643
+ <span class="param-type">Cesium.Color</span>
4644
+
4645
+
4646
+
4647
+ </td>
4648
+
4649
+
4650
+ <td class="default">
4651
+
4652
+ Cesium.Color.fromBytes(5, 30, 50)
4653
+
4654
+ </td>
4655
+
4656
+
4657
+ <td class="description last">
4658
+
4659
+
4660
+ <span class="optional"> 可选</span>
4661
+
4662
+
4663
+
4664
+
4665
+
4666
+ <p>远处雾颜色。</p></td>
4667
+ </tr>
4668
+
4669
+
4670
+
4671
+ <tr>
4672
+
4673
+ <td class="name"><code>maxFogDistance</code></td>
4674
+
4675
+
4676
+ <td class="type">
4677
+
4678
+
4679
+ <span class="param-type">number</span>
4680
+
4681
+
4682
+
4683
+ </td>
4684
+
4685
+
4686
+ <td class="default">
4687
+
4688
+ 1000.0
4689
+
4690
+ </td>
4691
+
4692
+
4693
+ <td class="description last">
4694
+
4695
+
4696
+ <span class="optional"> 可选</span>
4697
+
4698
+
4699
+
4700
+
4701
+
4702
+ <p>最大雾化距离。</p></td>
4703
+ </tr>
4704
+
4705
+
4706
+
4707
+ <tr>
4708
+
4709
+ <td class="name"><code>intensity</code></td>
4710
+
4711
+
4712
+ <td class="type">
4713
+
4714
+
4715
+ <span class="param-type">number</span>
4716
+
4717
+
4718
+
4719
+ </td>
4720
+
4721
+
4722
+ <td class="default">
4723
+
4724
+ 1.5
4725
+
4726
+ </td>
4727
+
4728
+
4729
+ <td class="description last">
4730
+
4731
+
4732
+ <span class="optional"> 可选</span>
4733
+
4734
+
4735
+
4736
+
4737
+
4738
+ <p>雾强度。</p></td>
4739
+ </tr>
4740
+
4741
+
4742
+
4743
+ <tr>
4744
+
4745
+ <td class="name"><code>waterLevel</code></td>
4746
+
4747
+
4748
+ <td class="type">
4749
+
4750
+
4751
+ <span class="param-type">number</span>
4752
+
4753
+
4754
+
4755
+ </td>
4756
+
4757
+
4758
+ <td class="default">
4759
+
4760
+ 0
4761
+
4762
+ </td>
4763
+
4764
+
4765
+ <td class="description last">
4766
+
4767
+
4768
+ <span class="optional"> 可选</span>
4769
+
4770
+
4771
+
4772
+
4773
+
4774
+ <p>水面高度。</p></td>
4775
+ </tr>
4776
+
4777
+
4778
+
4779
+ <tr>
4780
+
4781
+ <td class="name"><code>normalTexture</code></td>
4782
+
4783
+
4784
+ <td class="type">
4785
+
4786
+
4787
+ <span class="param-type">Cesium.Texture</span>
4788
+
4789
+
4790
+
4791
+ </td>
4792
+
4793
+
4794
+ <td class="default">
4795
+
4796
+ </td>
4797
+
4798
+
4799
+ <td class="description last">
4800
+
4801
+
4802
+ <span class="optional"> 可选</span>
4803
+
4804
+
4805
+
4806
+
4807
+
4808
+ <p>水面法线纹理。</p></td>
4809
+ </tr>
4810
+
4811
+
4812
+
4813
+ <tr>
4814
+
4815
+ <td class="name"><code>targetObject</code></td>
4816
+
4817
+
4818
+ <td class="type">
4819
+
4820
+
4821
+ <span class="param-type">Object</span>
4822
+
4823
+
4824
+
4825
+ </td>
4826
+
4827
+
4828
+ <td class="default">
4829
+
4830
+ </td>
4831
+
4832
+
4833
+ <td class="description last">
4834
+
4835
+
4836
+ <span class="optional"> 可选</span>
4837
+
4838
+
4839
+
4840
+
4841
+
4842
+ <p>目标对象(支持 Fluid 或 WaterSurface 类型,用于动态判断水下状态和获取水面高度)。</p></td>
4843
+ </tr>
4844
+
4845
+
4846
+ </tbody>
4847
+ </table>
4848
+ </td>
4849
+ </tr>
4850
+
4851
+
4852
+ </tbody>
4853
+ </table>
4854
+
4855
+
4856
+
4857
+ <dl class="details">
4858
+
4859
+
4860
+
4861
+
4862
+
4863
+
4864
+
4865
+
4866
+
4867
+
4868
+
4869
+
4870
+
4871
+
4872
+
4873
+
4874
+
4875
+
4876
+
4877
+
4878
+
4879
+ </dl>
4880
+
4881
+
4882
+
4883
+
4884
+
4885
+
4886
+
4887
+
4888
+
4889
+
4890
+
4891
+ <h5>Returns:</h5>
4892
+
4893
+
4894
+
4895
+ <table class="params">
4896
+ <thead>
4897
+ <tr>
4898
+
4899
+ <th>Type</th>
4900
+ <th class="last">Description</th>
4901
+ </tr>
4902
+ </thead>
4903
+ <tbody>
4904
+
4905
+ <tr>
4906
+
4907
+ <td class="type">
4908
+
4909
+ Cesium.PostProcessStage
4910
+
4911
+
4912
+ </td>
4913
+ <td class="description last">水下雾后处理阶段实例。</td>
4914
+ </tr>
4915
+
4916
+ </tbody>
4917
+ </table>
4918
+
4919
+
4920
+
4921
+
4922
+ <h5>Example</h5>
4923
+
4924
+ <p class="code-caption"><h7 id='createUnderwaterFogStage'>创建水下雾后处理阶段</h7></p>
4925
+
4926
+
4927
+
4928
+ <pre class="prettyprint"><code>const fog = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createUnderwaterFogStage({
4929
+ viewer,
4930
+ maxFogDistance: 1000.0,
4931
+ intensity: 1.5
4932
+ }))
4933
+ fog.enabled = false // 关闭后处理特效
4934
+ fog.uniforms.intensity = 1.0 // 修改相关参数</code></pre>
4935
+
4936
+
4937
+
4938
+ </dd>
4939
+
4940
+
4941
+
4942
+ <dt>
4943
+ <div class="nameContainer">
4944
+ <h4 class="name" id=".createUnderwaterGodRayStage">
4945
+
4946
+ PostProcessStageLibrary.createUnderwaterGodRayStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
4947
+ </h4>
4948
+
4949
+
4950
+ <div class="tag-source">
4951
+ engineExtensions/effects/PostProcessStageLibrary.js, line 922
4952
+ </div>
4953
+
4954
+ </div>
4955
+
4956
+
4957
+ </dt>
4958
+ <dd>
4959
+
4960
+
4961
+ <div class="description">
4962
+ <p>创建水下体积光后处理阶段</p>
4963
+ </div>
4964
+
4965
+
4966
+
4967
+
4968
+
4969
+
4970
+
4971
+
4972
+
4973
+ <table class="params">
4974
+ <thead>
4975
+ <tr>
4976
+
4977
+ <th>Name</th>
4978
+
4979
+
4980
+ <th>Type</th>
4981
+
4982
+
4983
+
4984
+ <th class="last">Description</th>
4985
+ </tr>
4986
+ </thead>
4987
+
4988
+ <tbody>
4989
+
4990
+
4991
+ <tr>
4992
+
4993
+ <td class="name"><code>options</code></td>
4994
+
4995
+
4996
+ <td class="type">
4997
+
4998
+
4999
+ <span class="param-type">Object</span>
5000
+
5001
+
5002
+
5003
+ </td>
5004
+
5005
+
5006
+
5007
+ <td class="description last">
5008
+
5009
+ <p>附加参数</p>
5010
+
5011
+
5012
+ <table class="params">
5013
+ <thead>
5014
+ <tr>
5015
+
5016
+ <th>Name</th>
5017
+
5018
+
5019
+ <th>Type</th>
5020
+
5021
+
5022
+ <th>Default</th>
5023
+
5024
+
5025
+ <th class="last">Description</th>
5026
+ </tr>
5027
+ </thead>
5028
+
5029
+ <tbody>
5030
+
5031
+
5032
+ <tr>
5033
+
5034
+ <td class="name"><code>viewer</code></td>
5035
+
5036
+
5037
+ <td class="type">
5038
+
5039
+
5040
+ <span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
5041
+
5042
+
5043
+
5044
+ </td>
5045
+
5046
+
5047
+ <td class="default">
5048
+
5049
+ </td>
5050
+
5051
+
5052
+ <td class="description last">
5053
+
5054
+
5055
+
5056
+
5057
+
5058
+
5059
+ <p>场景视图对象</p></td>
5060
+ </tr>
5061
+
5062
+
5063
+
5064
+ <tr>
5065
+
5066
+ <td class="name"><code>intensity</code></td>
5067
+
5068
+
5069
+ <td class="type">
5070
+
5071
+
5072
+ <span class="param-type">number</span>
5073
+
5074
+
5075
+
5076
+ </td>
5077
+
5078
+
5079
+ <td class="default">
5080
+
5081
+ 0.3
5082
+
5083
+ </td>
5084
+
5085
+
5086
+ <td class="description last">
5087
+
5088
+
5089
+ <span class="optional"> 可选</span>
5090
+
5091
+
5092
+
5093
+
5094
+
5095
+ <p>体积光整体强度。</p></td>
5096
+ </tr>
5097
+
5098
+
5099
+
5100
+ <tr>
5101
+
5102
+ <td class="name"><code>density</code></td>
5103
+
5104
+
5105
+ <td class="type">
5106
+
5107
+
5108
+ <span class="param-type">number</span>
5109
+
5110
+
5111
+
5112
+ </td>
5113
+
5114
+
5115
+ <td class="default">
5116
+
5117
+ 0.5
5118
+
5119
+ </td>
5120
+
5121
+
5122
+ <td class="description last">
5123
+
5124
+
5125
+ <span class="optional"> 可选</span>
5126
+
5127
+
5128
+
5129
+
5130
+
5131
+ <p>光线密度。</p></td>
5132
+ </tr>
5133
+
5134
+
5135
+
5136
+ <tr>
5137
+
5138
+ <td class="name"><code>decay</code></td>
5139
+
5140
+
5141
+ <td class="type">
5142
+
5143
+
5144
+ <span class="param-type">number</span>
5145
+
5146
+
5147
+
5148
+ </td>
5149
+
5150
+
5151
+ <td class="default">
5152
+
5153
+ 0.85
5154
+
5155
+ </td>
5156
+
5157
+
5158
+ <td class="description last">
5159
+
5160
+
5161
+ <span class="optional"> 可选</span>
5162
+
5163
+
5164
+
5165
+
5166
+
5167
+ <p>光线衰减。</p></td>
5168
+ </tr>
5169
+
5170
+
5171
+
5172
+ <tr>
5173
+
5174
+ <td class="name"><code>exposure</code></td>
5175
+
5176
+
5177
+ <td class="type">
5178
+
5179
+
5180
+ <span class="param-type">number</span>
5181
+
5182
+
5183
+
5184
+ </td>
5185
+
5186
+
5187
+ <td class="default">
5188
+
5189
+ 0.3
5190
+
5191
+ </td>
5192
+
5193
+
5194
+ <td class="description last">
5195
+
5196
+
5197
+ <span class="optional"> 可选</span>
5198
+
5199
+
5200
+
5201
+
5202
+
5203
+ <p>曝光强度。</p></td>
5204
+ </tr>
5205
+
5206
+
5207
+
5208
+ <tr>
5209
+
5210
+ <td class="name"><code>waterLevel</code></td>
5211
+
5212
+
5213
+ <td class="type">
5214
+
5215
+
5216
+ <span class="param-type">number</span>
5217
+
5218
+
5219
+
5220
+ </td>
5221
+
5222
+
5223
+ <td class="default">
5224
+
5225
+ 0
5226
+
5227
+ </td>
5228
+
5229
+
5230
+ <td class="description last">
5231
+
5232
+
5233
+ <span class="optional"> 可选</span>
5234
+
5235
+
5236
+
5237
+
5238
+
5239
+ <p>水面高度。</p></td>
5240
+ </tr>
5241
+
5242
+
5243
+
5244
+ <tr>
5245
+
5246
+ <td class="name"><code>targetObject</code></td>
5247
+
5248
+
5249
+ <td class="type">
5250
+
5251
+
5252
+ <span class="param-type">Object</span>
5253
+
5254
+
5255
+
5256
+ </td>
5257
+
5258
+
5259
+ <td class="default">
5260
+
5261
+ </td>
5262
+
5263
+
5264
+ <td class="description last">
5265
+
5266
+
5267
+ <span class="optional"> 可选</span>
5268
+
5269
+
5270
+
5271
+
5272
+
5273
+ <p>目标对象(支持 Fluid 或 WaterSurface 类型,用于动态判断水下状态和获取水面高度)。</p></td>
5274
+ </tr>
5275
+
5276
+
5277
+ </tbody>
5278
+ </table>
5279
+ </td>
5280
+ </tr>
5281
+
5282
+
5283
+ </tbody>
5284
+ </table>
5285
+
5286
+
5287
+
5288
+ <dl class="details">
5289
+
5290
+
5291
+
5292
+
5293
+
5294
+
5295
+
5296
+
5297
+
5298
+
5299
+
5300
+
5301
+
5302
+
5303
+
5304
+
5305
+
5306
+
5307
+
5308
+
5309
+
5310
+ </dl>
5311
+
5312
+
5313
+
5314
+
5315
+
5316
+
5317
+
5318
+
5319
+
5320
+
5321
+
5322
+ <h5>Returns:</h5>
5323
+
5324
+
5325
+
5326
+ <table class="params">
5327
+ <thead>
5328
+ <tr>
5329
+
5330
+ <th>Type</th>
5331
+ <th class="last">Description</th>
5332
+ </tr>
5333
+ </thead>
5334
+ <tbody>
5335
+
5336
+ <tr>
5337
+
5338
+ <td class="type">
5339
+
5340
+ Cesium.PostProcessStage
5341
+
5342
+
5343
+ </td>
5344
+ <td class="description last">水下体积光后处理阶段实例。</td>
5345
+ </tr>
5346
+
5347
+ </tbody>
5348
+ </table>
5349
+
5350
+
5351
+
5352
+
5353
+ <h5>Example</h5>
5354
+
5355
+ <p class="code-caption"><h7 id='createUnderwaterGodRayStage'>创建水下体积光后处理阶段</h7></p>
5356
+
5357
+
5358
+
5359
+ <pre class="prettyprint"><code>const godRay = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createUnderwaterGodRayStage({
5360
+ viewer,
5361
+ intensity: 0.3,
5362
+ density: 0.5
5363
+ }))
5364
+ godRay.enabled = false // 关闭后处理特效
5365
+ godRay.uniforms.intensity = 0.5 // 修改相关参数</code></pre>
5366
+
5367
+
5368
+
5369
+ </dd>
5370
+
5371
+
5372
+
5373
+ <dt>
5374
+ <div class="nameContainer">
5375
+ <h4 class="name" id=".createWaterDepthStage">
5376
+
5377
+ PostProcessStageLibrary.createWaterDepthStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
5378
+ </h4>
5379
+
5380
+
5381
+ <div class="tag-source">
5382
+ engineExtensions/effects/PostProcessStageLibrary.js, line 1043
5383
+ </div>
5384
+
5385
+ </div>
5386
+
5387
+
5388
+ </dt>
5389
+ <dd>
5390
+
5391
+
5392
+ <div class="description">
5393
+ <p>创建水深显示后处理阶段</p>
5394
+ </div>
5395
+
5396
+
5397
+
5398
+
5399
+
5400
+
5401
+
5402
+
5403
+
5404
+ <table class="params">
5405
+ <thead>
5406
+ <tr>
5407
+
5408
+ <th>Name</th>
5409
+
5410
+
5411
+ <th>Type</th>
5412
+
5413
+
5414
+
5415
+ <th class="last">Description</th>
5416
+ </tr>
5417
+ </thead>
5418
+
5419
+ <tbody>
5420
+
5421
+
5422
+ <tr>
5423
+
5424
+ <td class="name"><code>options</code></td>
5425
+
5426
+
5427
+ <td class="type">
5428
+
5429
+
5430
+ <span class="param-type">Object</span>
5431
+
5432
+
5433
+
5434
+ </td>
5435
+
5436
+
5437
+
5438
+ <td class="description last">
5439
+
5440
+ <p>附加参数</p>
5441
+
5442
+
5443
+ <table class="params">
5444
+ <thead>
5445
+ <tr>
5446
+
5447
+ <th>Name</th>
5448
+
5449
+
5450
+ <th>Type</th>
5451
+
5452
+
5453
+ <th>Default</th>
5454
+
5455
+
5456
+ <th class="last">Description</th>
5457
+ </tr>
5458
+ </thead>
5459
+
5460
+ <tbody>
5461
+
5462
+
5463
+ <tr>
5464
+
5465
+ <td class="name"><code>viewer</code></td>
5466
+
5467
+
5468
+ <td class="type">
5469
+
5470
+
5471
+ <span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
5472
+
5473
+
5474
+
5475
+ </td>
5476
+
5477
+
5478
+ <td class="default">
5479
+
5480
+ </td>
5481
+
5482
+
5483
+ <td class="description last">
5484
+
5485
+
5486
+
5487
+
5488
+
5489
+
5490
+ <p>场景视图对象</p></td>
5491
+ </tr>
5492
+
5493
+
5494
+
5495
+ <tr>
5496
+
5497
+ <td class="name"><code>waterLevel</code></td>
5498
+
5499
+
5500
+ <td class="type">
5501
+
5502
+
5503
+ <span class="param-type">number</span>
5504
+
5505
+
5506
+
5507
+ </td>
5508
+
5509
+
5510
+ <td class="default">
5511
+
5512
+ 0
5513
+
5514
+ </td>
5515
+
5516
+
5517
+ <td class="description last">
5518
+
5519
+
5520
+ <span class="optional"> 可选</span>
5521
+
5522
+
5523
+
5524
+
5525
+
5526
+ <p>水面高度。</p></td>
5527
+ </tr>
5528
+
5529
+
5530
+
5531
+ <tr>
5532
+
5533
+ <td class="name"><code>normalTexture</code></td>
5534
+
5535
+
5536
+ <td class="type">
5537
+
5538
+
5539
+ <span class="param-type">Cesium.Texture</span>
5540
+
5541
+
5542
+
5543
+ </td>
5544
+
5545
+
5546
+ <td class="default">
5547
+
5548
+ </td>
5549
+
5550
+
5551
+ <td class="description last">
5552
+
5553
+
5554
+
5555
+
5556
+
5557
+
5558
+ <p>水面法线纹理。</p></td>
5559
+ </tr>
5560
+
5561
+
5562
+
5563
+ <tr>
5564
+
5565
+ <td class="name"><code>depthColorTexture</code></td>
5566
+
5567
+
5568
+ <td class="type">
5569
+
5570
+
5571
+ <span class="param-type">Cesium.Texture</span>
5572
+
5573
+
5574
+
5575
+ </td>
5576
+
5577
+
5578
+ <td class="default">
5579
+
5580
+ </td>
5581
+
5582
+
5583
+ <td class="description last">
5584
+
5585
+
5586
+
5587
+
5588
+
5589
+
5590
+ <p>水深颜色查找纹理。</p></td>
5591
+ </tr>
5592
+
5593
+
5594
+ </tbody>
5595
+ </table>
5596
+ </td>
5597
+ </tr>
5598
+
5599
+
5600
+ </tbody>
5601
+ </table>
5602
+
5603
+
5604
+
5605
+ <dl class="details">
5606
+
5607
+
5608
+
5609
+
5610
+
5611
+
5612
+
5613
+
5614
+
5615
+
5616
+
5617
+
5618
+
5619
+
5620
+
5621
+
5622
+
5623
+
5624
+
5625
+
5626
+
5627
+ </dl>
5628
+
5629
+
5630
+
5631
+
5632
+
5633
+
5634
+
5635
+
5636
+
5637
+
5638
+
5639
+ <h5>Returns:</h5>
5640
+
5641
+
5642
+
5643
+ <table class="params">
5644
+ <thead>
5645
+ <tr>
5646
+
5647
+ <th>Type</th>
5648
+ <th class="last">Description</th>
5649
+ </tr>
5650
+ </thead>
5651
+ <tbody>
5652
+
5653
+ <tr>
5654
+
5655
+ <td class="type">
5656
+
5657
+ Cesium.PostProcessStage
5658
+
5659
+
5660
+ </td>
5661
+ <td class="description last">水深显示后处理阶段实例。</td>
5662
+ </tr>
5663
+
5664
+ </tbody>
5665
+ </table>
5666
+
5667
+
5668
+
5669
+
5670
+ <h5>Example</h5>
5671
+
5672
+ <p class="code-caption"><h7 id='createWaterDepthStage'>创建水深显示后处理阶段</h7></p>
5673
+
5674
+
5675
+
5676
+ <pre class="prettyprint"><code>const multipleColorTable = {
5677
+ 0: new Cesium.Color(1.0, 0.0, 0.0, 0.2),
5678
+ 50: new Cesium.Color(0.0, 1.0, 0.0, 0.45),
5679
+ 100: new Cesium.Color(0.0, 0.0, 1.0, 0.75),
5680
+ }
5681
+
5682
+ const textureData = []
5683
+ const colorEntries = Object.entries(multipleColorTable)
5684
+
5685
+ colorEntries.forEach(([depth, color]) => {
5686
+ textureData.push(
5687
+ Number(depth), 0.0, 0.0, 0.0,
5688
+ color.red, color.green, color.blue, color.alpha
5689
+ )
5690
+ })
5691
+
5692
+ const depthColorTexture = new Cesium.Texture({
5693
+ context: viewer.scene.context,
5694
+ source: {
5695
+ arrayBufferView: Float32Array.from(textureData),
5696
+ width: colorEntries.length * 2,
5697
+ height: 1,
5698
+ },
5699
+ pixelFormat: Cesium.PixelFormat.RGBA,
5700
+ pixelDatatype: Cesium.PixelDatatype.FLOAT,
5701
+ sampler: new Cesium.Sampler({
5702
+ wrapS: Cesium.TextureWrap.CLAMP_TO_EDGE,
5703
+ wrapT: Cesium.TextureWrap.CLAMP_TO_EDGE,
5704
+ magnificationFilter: Cesium.TextureMagnificationFilter.NEAREST,
5705
+ minificationFilter: Cesium.TextureMinificationFilter.NEAREST,
5706
+ }),
5707
+ })
5708
+
5709
+ const waterDepthStage = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createWaterDepthStage({
5710
+ viewer,
5711
+ enabled: true,
5712
+ waterLevel: 1000.0,
5713
+ normalTexture: waterSurface.normalFramebuffer._colorTextures[0],
5714
+ depthColorTexture,
5715
+ }))
5716
+ waterDepthStage.enabled = false // 关闭后处理特效</code></pre>
5717
+
5718
+
5719
+
5720
+ </dd>
5721
+
5722
+
5723
+
5724
+ <dt>
5725
+ <div class="nameContainer">
5726
+ <h4 class="name" id=".createWaterSurfaceDistortionStage">
5727
+
5728
+ PostProcessStageLibrary.createWaterSurfaceDistortionStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
5729
+ </h4>
5730
+
5731
+
5732
+ <div class="tag-source">
5733
+ engineExtensions/effects/PostProcessStageLibrary.js, line 1189
5734
+ </div>
5735
+
5736
+ </div>
5737
+
5738
+
5739
+ </dt>
5740
+ <dd>
5741
+
5742
+
5743
+ <div class="description">
5744
+ <p>创建水面扭曲后处理阶段</p>
5745
+ </div>
5746
+
5747
+
5748
+
5749
+
5750
+
5751
+
5752
+
5753
+
5754
+
5755
+ <table class="params">
5756
+ <thead>
5757
+ <tr>
5758
+
5759
+ <th>Name</th>
5760
+
5761
+
5762
+ <th>Type</th>
5763
+
5764
+
5765
+
5766
+ <th class="last">Description</th>
5767
+ </tr>
5768
+ </thead>
5769
+
5770
+ <tbody>
5771
+
5772
+
5773
+ <tr>
5774
+
5775
+ <td class="name"><code>options</code></td>
5776
+
5777
+
5778
+ <td class="type">
5779
+
5780
+
5781
+ <span class="param-type">Object</span>
5782
+
5783
+
5784
+
5785
+ </td>
5786
+
5787
+
5788
+
5789
+ <td class="description last">
5790
+
5791
+ <p>附加参数</p>
5792
+
5793
+
5794
+ <table class="params">
5795
+ <thead>
5796
+ <tr>
5797
+
5798
+ <th>Name</th>
5799
+
5800
+
5801
+ <th>Type</th>
5802
+
5803
+
5804
+ <th>Default</th>
5805
+
5806
+
5807
+ <th class="last">Description</th>
5808
+ </tr>
5809
+ </thead>
5810
+
5811
+ <tbody>
5812
+
5813
+
5814
+ <tr>
5815
+
5816
+ <td class="name"><code>viewer</code></td>
5817
+
5818
+
5819
+ <td class="type">
5820
+
5821
+
5822
+ <span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
5823
+
5824
+
5825
+
5826
+ </td>
5827
+
5828
+
5829
+ <td class="default">
5830
+
5831
+ </td>
5832
+
5833
+
5834
+ <td class="description last">
5835
+
5836
+
5837
+
5838
+
5839
+
5840
+
5841
+ <p>场景视图对象</p></td>
5842
+ </tr>
5843
+
5844
+
5845
+
5846
+ <tr>
5847
+
5848
+ <td class="name"><code>distortionStrength</code></td>
5849
+
5850
+
5851
+ <td class="type">
5852
+
5853
+
5854
+ <span class="param-type">number</span>
5855
+
5856
+
5857
+
5858
+ </td>
5859
+
5860
+
5861
+ <td class="default">
5862
+
5863
+ 0.5
5864
+
5865
+ </td>
5866
+
5867
+
5868
+ <td class="description last">
5869
+
5870
+
5871
+ <span class="optional"> 可选</span>
5872
+
5873
+
5874
+
5875
+
5876
+
5877
+ <p>扭曲强度。</p></td>
5878
+ </tr>
5879
+
5880
+
5881
+
5882
+ <tr>
5883
+
5884
+ <td class="name"><code>waterLevel</code></td>
5885
+
5886
+
5887
+ <td class="type">
5888
+
5889
+
5890
+ <span class="param-type">number</span>
5891
+
5892
+
5893
+
5894
+ </td>
5895
+
5896
+
5897
+ <td class="default">
5898
+
5899
+ 0
5900
+
5901
+ </td>
5902
+
5903
+
5904
+ <td class="description last">
5905
+
5906
+
5907
+ <span class="optional"> 可选</span>
5908
+
5909
+
5910
+
5911
+
5912
+
5913
+ <p>水面高度。</p></td>
5914
+ </tr>
5915
+
5916
+
5917
+
5918
+ <tr>
5919
+
5920
+ <td class="name"><code>normalTexture</code></td>
5921
+
5922
+
5923
+ <td class="type">
5924
+
5925
+
5926
+ <span class="param-type">Cesium.Texture</span>
5927
+
5928
+
5929
+
5930
+ </td>
5931
+
5932
+
5933
+ <td class="default">
5934
+
5935
+ </td>
5936
+
5937
+
5938
+ <td class="description last">
5939
+
5940
+
5941
+ <span class="optional"> 可选</span>
5942
+
5943
+
5944
+
5945
+
5946
+
5947
+ <p>水面法线纹理。</p></td>
5948
+ </tr>
5949
+
5950
+
5951
+
5952
+ <tr>
5953
+
5954
+ <td class="name"><code>enableShallowWaterDistortion</code></td>
5955
+
5956
+
5957
+ <td class="type">
5958
+
5959
+
5960
+ <span class="param-type">boolean</span>
5961
+
5962
+
5963
+
5964
+ </td>
5965
+
5966
+
5967
+ <td class="default">
5968
+
5969
+ true
5970
+
5971
+ </td>
5972
+
5973
+
5974
+ <td class="description last">
5975
+
5976
+
5977
+ <span class="optional"> 可选</span>
5978
+
5979
+
5980
+
5981
+
5982
+
5983
+ <p>是否开启浅水扰动效果。</p></td>
5984
+ </tr>
5985
+
5986
+
5987
+
5988
+ <tr>
5989
+
5990
+ <td class="name"><code>targetObject</code></td>
5991
+
5992
+
5993
+ <td class="type">
5994
+
5995
+
5996
+ <span class="param-type">Object</span>
5997
+
5998
+
5999
+
6000
+ </td>
6001
+
6002
+
6003
+ <td class="default">
6004
+
6005
+ </td>
6006
+
6007
+
6008
+ <td class="description last">
6009
+
6010
+
6011
+ <span class="optional"> 可选</span>
6012
+
6013
+
6014
+
6015
+
6016
+
6017
+ <p>目标对象(支持 Fluid 或 WaterSurface 类型,用于动态判断水下状态和获取水面高度)。</p></td>
6018
+ </tr>
6019
+
6020
+
6021
+ </tbody>
6022
+ </table>
6023
+ </td>
6024
+ </tr>
6025
+
6026
+
6027
+ </tbody>
6028
+ </table>
6029
+
6030
+
6031
+
6032
+ <dl class="details">
6033
+
6034
+
6035
+
6036
+
6037
+
6038
+
6039
+
6040
+
6041
+
6042
+
6043
+
6044
+
6045
+
6046
+
6047
+
6048
+
6049
+
6050
+
6051
+
6052
+
6053
+
6054
+ </dl>
6055
+
6056
+
6057
+
6058
+
6059
+
6060
+
6061
+
6062
+
6063
+
6064
+
6065
+
6066
+ <h5>Returns:</h5>
6067
+
6068
+
6069
+
6070
+ <table class="params">
6071
+ <thead>
6072
+ <tr>
6073
+
6074
+ <th>Type</th>
6075
+ <th class="last">Description</th>
6076
+ </tr>
6077
+ </thead>
6078
+ <tbody>
6079
+
6080
+ <tr>
6081
+
6082
+ <td class="type">
6083
+
6084
+ Cesium.PostProcessStage
6085
+
6086
+
6087
+ </td>
6088
+ <td class="description last">水面扭曲后处理阶段实例。</td>
6089
+ </tr>
6090
+
6091
+ </tbody>
6092
+ </table>
6093
+
6094
+
6095
+
6096
+
6097
+ <h5>Example</h5>
6098
+
6099
+ <p class="code-caption"><h7 id='createWaterSurfaceDistortionStage'>创建水面扭曲后处理阶段</h7></p>
6100
+
6101
+
6102
+
6103
+ <pre class="prettyprint"><code>const surfaceDistortion = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createWaterSurfaceDistortionStage({
6104
+ viewer,
6105
+ distortionStrength: 0.5
6106
+ }))
6107
+ surfaceDistortion.enabled = false // 关闭后处理特效
6108
+ surfaceDistortion.uniforms.distortionStrength = 0.8 // 修改相关参数</code></pre>
6109
+
6110
+
6111
+
6112
+ </dd>
6113
+
6114
+
6115
+
6116
+ <dt>
6117
+ <div class="nameContainer">
6118
+ <h4 class="name" id=".createWaterSurfaceFoamStage">
6119
+
6120
+ PostProcessStageLibrary.createWaterSurfaceFoamStage<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Cesium.PostProcessStage}</span>
6121
+ </h4>
6122
+
6123
+
6124
+ <div class="tag-source">
6125
+ engineExtensions/effects/PostProcessStageLibrary.js, line 734
6126
+ </div>
6127
+
6128
+ </div>
6129
+
6130
+
6131
+ </dt>
6132
+ <dd>
6133
+
6134
+
6135
+ <div class="description">
6136
+ <p>创建水面泡沫后处理阶段</p>
6137
+ </div>
6138
+
6139
+
6140
+
6141
+
6142
+
6143
+
6144
+
6145
+
6146
+
6147
+ <table class="params">
6148
+ <thead>
6149
+ <tr>
6150
+
6151
+ <th>Name</th>
6152
+
6153
+
6154
+ <th>Type</th>
6155
+
6156
+
6157
+
6158
+ <th class="last">Description</th>
6159
+ </tr>
6160
+ </thead>
6161
+
6162
+ <tbody>
6163
+
6164
+
6165
+ <tr>
6166
+
6167
+ <td class="name"><code>options</code></td>
6168
+
6169
+
6170
+ <td class="type">
6171
+
6172
+
6173
+ <span class="param-type">Object</span>
6174
+
6175
+
6176
+
6177
+ </td>
6178
+
6179
+
6180
+
6181
+ <td class="description last">
6182
+
6183
+ <p>附加参数</p>
6184
+
6185
+
6186
+ <table class="params">
6187
+ <thead>
6188
+ <tr>
6189
+
6190
+ <th>Name</th>
6191
+
6192
+
6193
+ <th>Type</th>
6194
+
6195
+
6196
+ <th>Default</th>
6197
+
6198
+
6199
+ <th class="last">Description</th>
6200
+ </tr>
6201
+ </thead>
6202
+
6203
+ <tbody>
6204
+
6205
+
6206
+ <tr>
6207
+
6208
+ <td class="name"><code>viewer</code></td>
6209
+
6210
+
6211
+ <td class="type">
6212
+
6213
+
6214
+ <span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
6215
+
6216
+
6217
+
6218
+ </td>
6219
+
6220
+
6221
+ <td class="default">
6222
+
6223
+ </td>
6224
+
6225
+
6226
+ <td class="description last">
6227
+
6228
+
6229
+
6230
+
6231
+
6232
+
6233
+ <p>场景视图对象</p></td>
6234
+ </tr>
6235
+
6236
+
6237
+
6238
+ <tr>
6239
+
6240
+ <td class="name"><code>intensity</code></td>
6241
+
6242
+
6243
+ <td class="type">
6244
+
6245
+
6246
+ <span class="param-type">number</span>
6247
+
6248
+
6249
+
6250
+ </td>
6251
+
6252
+
6253
+ <td class="default">
6254
+
6255
+ 0.7
6256
+
6257
+ </td>
6258
+
6259
+
6260
+ <td class="description last">
6261
+
6262
+
6263
+ <span class="optional"> 可选</span>
6264
+
6265
+
6266
+
6267
+
6268
+
6269
+ <p>泡沫整体强度。</p></td>
6270
+ </tr>
6271
+
6272
+
6273
+
6274
+ <tr>
6275
+
6276
+ <td class="name"><code>waterDepthThreshold</code></td>
6277
+
6278
+
6279
+ <td class="type">
6280
+
6281
+
6282
+ <span class="param-type">number</span>
6283
+
6284
+
6285
+
6286
+ </td>
6287
+
6288
+
6289
+ <td class="default">
6290
+
6291
+ 600.0
6292
+
6293
+ </td>
6294
+
6295
+
6296
+ <td class="description last">
6297
+
6298
+
6299
+ <span class="optional"> 可选</span>
6300
+
6301
+
6302
+
6303
+
6304
+
6305
+ <p>参与泡沫计算的最大水深阈值。</p></td>
6306
+ </tr>
6307
+
6308
+
6309
+
6310
+ <tr>
6311
+
6312
+ <td class="name"><code>foamWaterDepthThreshold</code></td>
6313
+
6314
+
6315
+ <td class="type">
6316
+
6317
+
6318
+ <span class="param-type">number</span>
6319
+
6320
+
6321
+
6322
+ </td>
6323
+
6324
+
6325
+ <td class="default">
6326
+
6327
+ 100.0
6328
+
6329
+ </td>
6330
+
6331
+
6332
+ <td class="description last">
6333
+
6334
+
6335
+ <span class="optional"> 可选</span>
6336
+
6337
+
6338
+
6339
+
6340
+
6341
+ <p>泡沫最明显区域的水深阈值。</p></td>
6342
+ </tr>
6343
+
6344
+
6345
+
6346
+ <tr>
6347
+
6348
+ <td class="name"><code>noiseScale</code></td>
6349
+
6350
+
6351
+ <td class="type">
6352
+
6353
+
6354
+ <span class="param-type">number</span>
6355
+
6356
+
6357
+
6358
+ </td>
6359
+
6360
+
6361
+ <td class="default">
6362
+
6363
+ 0.05
6364
+
6365
+ </td>
6366
+
6367
+
6368
+ <td class="description last">
6369
+
6370
+
6371
+ <span class="optional"> 可选</span>
6372
+
6373
+
6374
+
6375
+
6376
+
6377
+ <p>泡沫噪声缩放。</p></td>
6378
+ </tr>
6379
+
6380
+
6381
+
6382
+ <tr>
6383
+
6384
+ <td class="name"><code>speed</code></td>
6385
+
6386
+
6387
+ <td class="type">
6388
+
6389
+
6390
+ <span class="param-type">number</span>
6391
+
6392
+
6393
+
6394
+ </td>
6395
+
6396
+
6397
+ <td class="default">
6398
+
6399
+ 2
6400
+
6401
+ </td>
6402
+
6403
+
6404
+ <td class="description last">
6405
+
6406
+
6407
+ <span class="optional"> 可选</span>
6408
+
6409
+
6410
+
6411
+
6412
+
6413
+ <p>泡沫流动速度。</p></td>
6414
+ </tr>
6415
+
6416
+
6417
+
6418
+ <tr>
6419
+
6420
+ <td class="name"><code>contrast</code></td>
6421
+
6422
+
6423
+ <td class="type">
6424
+
6425
+
6426
+ <span class="param-type">number</span>
6427
+
6428
+
6429
+
6430
+ </td>
6431
+
6432
+
6433
+ <td class="default">
6434
+
6435
+ 0.4
6436
+
6437
+ </td>
6438
+
6439
+
6440
+ <td class="description last">
6441
+
6442
+
6443
+ <span class="optional"> 可选</span>
6444
+
6445
+
6446
+
6447
+
6448
+
6449
+ <p>泡沫纹理对比度。</p></td>
6450
+ </tr>
6451
+
6452
+
6453
+
6454
+ <tr>
6455
+
6456
+ <td class="name"><code>waterLevel</code></td>
6457
+
6458
+
6459
+ <td class="type">
6460
+
6461
+
6462
+ <span class="param-type">number</span>
6463
+
6464
+
6465
+
6466
+ </td>
6467
+
6468
+
6469
+ <td class="default">
6470
+
6471
+ 0
6472
+
6473
+ </td>
6474
+
6475
+
6476
+ <td class="description last">
6477
+
6478
+
6479
+ <span class="optional"> 可选</span>
6480
+
6481
+
6482
+
6483
+
6484
+
6485
+ <p>水面高度。</p></td>
6486
+ </tr>
6487
+
6488
+
6489
+
6490
+ <tr>
6491
+
6492
+ <td class="name"><code>normalTexture</code></td>
6493
+
6494
+
6495
+ <td class="type">
6496
+
6497
+
6498
+ <span class="param-type">Cesium.Texture</span>
6499
+
6500
+
6501
+
6502
+ </td>
6503
+
6504
+
6505
+ <td class="default">
6506
+
6507
+ </td>
6508
+
6509
+
6510
+ <td class="description last">
6511
+
6512
+
6513
+ <span class="optional"> 可选</span>
6514
+
6515
+
6516
+
6517
+
6518
+
6519
+ <p>水面法线纹理。</p></td>
6520
+ </tr>
6521
+
6522
+
6523
+
6524
+ <tr>
6525
+
6526
+ <td class="name"><code>targetObject</code></td>
6527
+
6528
+
6529
+ <td class="type">
6530
+
6531
+
6532
+ <span class="param-type">Object</span>
6533
+
6534
+
6535
+
6536
+ </td>
6537
+
6538
+
6539
+ <td class="default">
6540
+
6541
+ </td>
6542
+
6543
+
6544
+ <td class="description last">
6545
+
6546
+
6547
+ <span class="optional"> 可选</span>
6548
+
6549
+
6550
+
6551
+
6552
+
6553
+ <p>目标对象(支持 Fluid 或 WaterSurface 类型,用于动态判断水下状态和获取水面高度)。</p></td>
6554
+ </tr>
6555
+
6556
+
6557
+ </tbody>
6558
+ </table>
6559
+ </td>
6560
+ </tr>
6561
+
6562
+
6563
+ </tbody>
6564
+ </table>
6565
+
6566
+
6567
+
6568
+ <dl class="details">
6569
+
6570
+
6571
+
6572
+
6573
+
6574
+
6575
+
6576
+
6577
+
6578
+
6579
+
6580
+
6581
+
6582
+
6583
+
6584
+
6585
+
6586
+
6587
+
6588
+
6589
+
6590
+ </dl>
6591
+
6592
+
6593
+
6594
+
6595
+
6596
+
6597
+
6598
+
6599
+
6600
+
6601
+
6602
+ <h5>Returns:</h5>
6603
+
6604
+
6605
+
6606
+ <table class="params">
6607
+ <thead>
6608
+ <tr>
6609
+
6610
+ <th>Type</th>
6611
+ <th class="last">Description</th>
6612
+ </tr>
6613
+ </thead>
6614
+ <tbody>
6615
+
6616
+ <tr>
6617
+
6618
+ <td class="type">
6619
+
6620
+ Cesium.PostProcessStage
6621
+
6622
+
6623
+ </td>
6624
+ <td class="description last">水面泡沫后处理阶段实例。</td>
6625
+ </tr>
6626
+
6627
+ </tbody>
6628
+ </table>
6629
+
6630
+
6631
+
6632
+
6633
+ <h5>Example</h5>
6634
+
6635
+ <p class="code-caption"><h7 id='createWaterSurfaceFoamStage'>创建水面泡沫后处理阶段</h7></p>
6636
+
6637
+
6638
+
6639
+ <pre class="prettyprint"><code>const foam = viewer.scene.postProcessStages.add(PostProcessStageLibrary.createWaterSurfaceFoamStage({
6640
+ viewer,
6641
+ intensity: 0.7,
6642
+ waterDepthThreshold: 600.0
6643
+ }))
6644
+ foam.enabled = false // 关闭后处理特效
6645
+ foam.uniforms.intensity = 0.5 // 修改相关参数</code></pre>
3640
6646
 
3641
6647
 
3642
6648
 
@@ -3656,7 +6662,7 @@ snow.uniforms.speed = 3 // 修改相关参数</code></pre>
3656
6662
 
3657
6663
 
3658
6664
  <footer>
3659
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Feb 06 2026 14:59:55 GMT+0800 (中国标准时间)
6665
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Sat Sep 12 2026 11:55:59 GMT+0800 (中国标准时间)
3660
6666
  </footer>
3661
6667
  </div>
3662
6668
  </div>