import{G as l,U as t,a as r}from"./environmentTextureTools-BTwhBmLN.js";import"./index-BkylzejB.js";import"./index-T8LZyOXI.js";import"./dumpTools-D0vSQubr.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};
