code: function (renderer, panoramaMap, cubeMap, option) {
          var environmentMapPass = new EnvironmentMapPass();
          var skydome = new Skybox$1({
              scene: new Scene()
          });
          skydome.setEnvironmentMap(panoramaMap);
  
          option = option || {};
          if (option.encodeRGBM) {
              skydome.material.define('fragment', 'RGBM_ENCODE');
          }
  
          // Share sRGB
          cubeMap.sRGB = panoramaMap.sRGB;
  
          environmentMapPass.texture = cubeMap;
          environmentMapPass.render(renderer, skydome.scene);
          environmentMapPass.texture = null;
          environmentMapPass.dispose(renderer);
          return cubeMap;
      }
docs: Render a panorama texture to a cube map
  @param  {clay.Renderer} renderer
  @param  {clay.Texture2D} panoramaMap
  @param  {clay.TextureCube} cubeMap
  @param  {Object} option
  @param  {boolean} [option.encodeRGBM]