dirConfig[0] = direction.x;
        map.setLights(lights);
        groupLayer.setSceneConfig(sceneConfig);
      });
      yCtrl.onChange(function () {
        dirConfig[1] = direction.y;
        map.setLights(lights);
        groupLayer.setSceneConfig(sceneConfig);
      });
      zCtrl.onChange(function () {
        dirConfig[2] = direction.z;
        map.setLights(lights);
        groupLayer.setSceneConfig(sceneConfig);
      });


      var ambient = {
        r: lights.ambient.orientation || 0,
       