@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
3 lines (2 loc) • 561 B
JavaScript
import{F as t}from"./index-DFZFpUG-.esm.min.js";const e=5126,n=5123,o=5121,s={[o]:1,[n]:2,[e]:4};function f(e,o,f){const r=e.accessors[f],c=r.componentType,i=s[c]??4,u=e.bufferViews[r.bufferView],b=u.byteStride??2*i,m=5121===c?1/255:c===n?1/65535:1,p=(u.byteOffset??0)+(r.byteOffset??0),y=new t(2*r.count);for(let t=0;t<r.count;t++){const e=p+t*b;for(let s=0;s<2;s++){const f=e+s*i,r=5126===c?o.getFloat32(f,!0):c===n?o.getUint16(f,!0):o.getUint8(f);y[2*t+s]=r*m}}return y}export{f as resolveUvVec2};
//# sourceMappingURL=gltf-uv-denorm-Wox5EPL3.esm.min.js.map