 mode: lights.ambient.mode || 1,
        level: lights.ambient.level || 0,
        brightness: lights.ambient.brightness || 0
      };
      var folder = gui.addFolder('ambient');
      folder.open();
      var rCtrl = folder.add(ambient, 'r', 0, 360, 0.1);
      rCtrl.onChange(function () {
        lights.ambient.orientation = ambient.r;
        map.setLights(lights);
        groupLayer.setSceneConfig(sceneConfig);
      });
      var mCtrl = folder.add(ambient, 'mode', 0, 1, 1);
      mCtrl.onChange(funct