import{f as l,g as c}from"./nc-3d-babylon.DXK9i1XM.js";import"./nc-main.DEgIQeOo.js";import"/vue.js";import"./service-worker.DGZzV4eE.js";class y{constructor(){this.supportCascades=!1}loadCubeData(){throw".hdr not supported in Cube."}loadData(s,e,p){const i=new Uint8Array(s.buffer,s.byteOffset,s.byteLength),t=l(i),r=c(i,t),n=t.width*t.height,o=new Float32Array(n*4);for(let a=0;a<n;a+=1)o[a*4]=r[a*3],o[a*4+1]=r[a*3+1],o[a*4+2]=r[a*3+2],o[a*4+3]=1;p(t.width,t.height,e.generateMipMaps,!1,()=>{const a=e.getEngine();e.type=1,e.format=5,e._gammaSpace=!1,a._uploadDataToTextureDirectly(e,o)})}}export{y as _HDRTextureLoader};
