import{G as l,U as t,a as r}from"./environmentTextureTools-BFR5JSi6.js";import"./index-DWyDLubb.js";import"./index-CDrXokXW.js";import"./dumpTools-C3pGK_mZ.js";class m{constructor(){this.supportCascades=!1}loadCubeData(o,a,p,s,n){if(Array.isArray(o))return;const e=l(o);if(e){a.width=e.width,a.height=e.width;try{t(a,e),r(a,o,e).then(()=>{a.isReady=!0,a.onLoadedObservable.notifyObservers(a),a.onLoadedObservable.clear(),s&&s()},i=>{n?.("Can not upload environment levels",i)})}catch(i){n?.("Can not upload environment file",i)}}else n&&n("Can not parse the environment file",null)}loadData(){throw".env not supported in 2d."}}export{m as _ENVTextureLoader};
