PageSourceSearch

https://balloon99-kj7qgchv.manus.space/assets/dds-BrbRE-B1.js

js balloon99-kj7qgchv.manus.space collected 2026-10-03 05:00:19 UTC 2,556 bytes, 1 lines download raw bytes

1import{D as M}from"./dds.pure-DXb8qusA.js";import{A as x,v as A,I as R,J as b,L as P}from"./fileTools.pure-O3hflNMy.js";import{_ as W}from"./engine-CThjqeAu.js";import"./cubemapToSphericalPolynomial--fI2d8Is.js";import"./perfCounter-BXP6OJRQ.js";import"./index-DY6XcbtQ.js";import"./baseTexture.pure-BeMB4zCM.js";import"./math.size-F3xmSqZc.js";function B(e){const i=e.split("?")[0],t=i.lastIndexOf(".");return t>-1?i.substring(t).toLowerCase():""}let y=!1;function O(){y||(y=!0,x.prototype._partialLoadFile=function(e,i,t,n,a=null){const s=r=>{t[i]=r,t._internalCount++,t._internalCount===6&&n(t)},l=(r,f)=>{a&&r&&a(r.status+" "+r.statusText,f)};this._loadFile(e,s,void 0,void 0,!0,l)},x.prototype._cascadeLoadFiles=function(e,i,t,n=null){const a=[];a._internalCount=0;for(let s=0;s<6;s++)this._partialLoadFile(t[s],s,a,i,n)},x.prototype._cascadeLoadImgs=function(e,i,t,n,a=null,s){const l=[];l._internalCount=0;for(let r=0;r<6;r++)this._partialLoadImg(n[r],r,l,e,i,t,a,s)},x.prototype._partialLoadImg=function(e,i,t,n,a,s,l=null,r){const f=A();R(e,p=>{t[i]=p,t._internalCount++,n&&n.removePendingData(f),t._internalCount===6&&s&&s(a,t)},(p,h)=>{n&&n.removePendingData(f),l&&l(p,h)},n?n.offlineProvider:null,r),n&&n.addPendingData(f)},x.prototype.createCubeTextureBase=function(e,i,t,n,a=null,s=null,l,r=null,f=!1,g=0,L=0,p=null,h=null,T=null,w=!1,m=null){const o=p||new b(this,7);o.isCube=!0,o.url=e,o.generateMipMaps=!n,o._lodGenerationScale=g,o._lodGenerationOffset=L,o._useSRGBBuffer=!!w&&this._caps.supportSRGBBuffers&&(this.version>1||this.isWebGPU||!!n),o!==p&&(o.label=e.substring(0,60)),this._doNotHandleContextLost||(o._extension=r,o._files=t,o._buffer=m);const C=e;this._transformTextureUrl&&!p&&(e=this._transformTextureUrl(e));const G=r??B(e),I=W(G),_=(u,d)=>{o.dispose(),s?s(u,d):u&&P.Warn(u)},v=(u,d)=>{e===C?u&&_(u.status+" "+u.statusText,d):(P.Warn(`Failed to load ${e}, falling back to the ${C}`),this.createCubeTextureBase(C,i,t,!!n,a,_,l,r,f,g,L,o,h,T,w,m))};if(I)I.then(u=>{const d=c=>{h&&h(o,c),u.loadCubeData(c,o,f,a,(D,F)=>{_(D,F)})};m?d(m):t&&t.length===6?u.supportCascades?this._cascadeLoadFiles(i,c=>d(c.map(D=>new Uint8Array(D))),t,_):_("Textures type does not support cascades."):this._loadFile(e,c=>d(new Uint8Array(c)),void 0,i?i.offlineProvider||null:void 0,!0,v)});else{if(!t||t.length===0)throw new Error("Cannot load cubemap because files were not defined, or the correct loader was not found.");this._cascadeLoadImgs(i,o,(u,d)=>{T&&T(u,d)},t,_)}return this._internalTexturesCache.push(o),o})}O();export{M as DDSTools};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.