Cesium Practical Combat - Customized plotting polygons to achieve water effects
When the project encounters the need for boat movement, of course it also requires water surface effects. This article introduces how to achieve water surface effects.
Cesium
It is relatively easy to achieve the water surface effect. Just use the official water texture material and add a water surface map.
This article includes core code, complete code, and online examples.
core code
Use primitives to define the water surface effect:
let waterPrimitive;
/**
* @todo 流动水面管理类
* @author Southejor Zhao <[email protected]>
* @date 2024年1月2日10:23:00
* @description
*/
function WaterEffectPrimitive(