Cesium 实战 - 自定义标绘多边形实现水面效果

Cesium 实战 - 自定义标绘多边形实现水面效果

项目中遇到船行驶的需求,当然也需要水面效果,本文介绍一下实现水面效果。

Cesium 实现水面效果的方式比较容易,使用官方的水纹材质加上一张水面贴图即可。

本文包括核心代码、完整代码以及在线示例。


核心代码

使用图元,定义水面效果:


let waterPrimitive;
/**
 * @todo 流动水面管理类
 * @author Southejor Zhao <[email protected]>
 * @date 2024年1月2日10:23:00
 * @description
 */
function WaterEffectPrimitive(

猜你喜欢

转载自blog.csdn.net/linzi19900517/article/details/135064552