345
wangjuncheng
2 天以前 770dae03ffe931e4c2dfc1860b60c058cc5ed149
src/utils/water.js
@@ -85,7 +85,7 @@
    color: SmartEarth.Cesium.Color.fromCssColorString("#D4F2E7"),
    loop: false,
    callback: timeCallback,
    alphaByDepth: 0,
    alphaByDepth: 0.0,
    waterHeightLevels,
    colorRender,
    sizeIndex: 0,
@@ -129,7 +129,7 @@
export function updateWaterColor(color, alpha) {
  if (water) {
    water.color = Cesium.Color.fromCssColorString(color);
    water.alphaByDepth = alpha;
    water.alphaByDepth = 0;
  } else {
    console.warn("No water simulation to pause.");
  }