plugins/weather/src/api/weather.js
/**
   * initiates the precipitation depending on the chosen weatherSystem
   * @param {string} system
   * @param {number} intensity
   */
initiates the precipitation depending on the chosen weatherSystem
@param {string} system
@param {number} intensity
initiates the precipitation depending on the chosen weatherSystem @param { string } system @param { number } intensity
start(system, intensity) {
    if (!(framework.getActiveMap() instanceof vcs.vcm.maps.Cesium)) {
      return;
    }
    if (system === 'rain') {
      this.rainSystem.show = true;
      this.snowSystem.show = false;
      this.rainSystem.emissionRate = intensity;
      this.scene.skyAtmosphere.hueShift = -0.97;
      this.scene.skyAtmosphere.saturationShift = 0.25;
      this.scene.skyAtmosphere.brightnessShift = -0.4;
      this.scene.fog.density = 0.00025;
      this.scene.fog.minimumBrightness = 0.01;
    } else if (system === 'snow') {
      this.rainSystem.show = false;
      this.snowSystem.show = true;
      this.snowSystem.emissionRate = intensity;
      this.scene.skyAtmosphere.hueShift = -0.8;
      this.scene.skyAtmosphere.saturationShift = -0.7;
      this.scene.skyAtmosphere.brightnessShift = -0.33;
      this.scene.fog.density = 0.001;
      this.scene.fog.minimumBrightness = 0.8;
    }
    this.animationViewModel.playForwardViewModel.command();
    this.clock.shouldAnimate = true;
  }
start ( system , intensity ) { if ( ! ( framework . getActiveMap ( ) instanceof vcs . vcm . maps . Cesium ) ) { return ; } if ( system === 'rain' ) { this . rainSystem . show = true ; this . snowSystem . show = false ; this . rainSystem . emissionRate = intensity ; this . scene . skyAtmosphere . hueShift = - 0.97 ; this . scene . skyAtmosphere . saturationShift = 0.25 ; this . scene . skyAtmosphere . brightnessShift = - 0.4 ; this . scene . fog . density = 0.00025 ; this . scene . fog . minimumBrightness = 0.01 ; } else if ( system === 'snow' ) { this . rainSystem . show = false ; this . snowSystem . show = true ; this . snowSystem . emissionRate = intensity ; this . scene . skyAtmosphere . hueShift = - 0.8 ; this . scene . skyAtmosphere . saturationShift = - 0.7 ; this . scene . skyAtmosphere . brightnessShift = - 0.33 ; this . scene . fog . density = 0.001 ; this . scene . fog . minimumBrightness = 0.8 ; } this . animationViewModel . playForwardViewModel . command ( ) ; this . clock . shouldAnimate = true ; }
initiates the precipitation depending on the chosen weatherSystem
 @param {string} system
 @param {number} intensity
initiates the precipitation depending on the chosen weatherSystem @param { string } system @param { number } intensity