2
wangjuncheng
2 天以前 4743f631bf1fcec44428a3c4c253e1c112bea621
src/utils/water.js
@@ -85,7 +85,7 @@
    color: SmartEarth.Cesium.Color.fromCssColorString("#D4F2E7"),
    loop: false,
    callback: timeCallback,
    alphaByDepth: -0.3,
    alphaByDepth: -110.0,
    waterHeightLevels,
    colorRender,
    sizeIndex: 0,
@@ -96,7 +96,7 @@
  water.offsetMinHeight = 0; //水偏移最小高度
  water.offsetMaxHeight = 100; //水偏移最大高度
  // 是否开启箭头
  enableWaterArrowFlow(true);
  enableWaterArrowFlow(false);
  // 是否开启水面阴影
  toggleWaterShadow(false);
@@ -129,7 +129,7 @@
export function updateWaterColor(color, alpha) {
  if (water) {
    water.color = Cesium.Color.fromCssColorString(color);
    water.alphaByDepth = alpha;
    water.alphaByDepth = -110.0;
  } else {
    console.warn("No water simulation to pause.");
  }