holostaff-widget 3.0.0-alpha.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/{BufferResource-DXhnw-dI.js → BufferResource-DeLlYxf8.js} +58 -56
  2. package/dist/{BufferResource-DXhnw-dI.js.map → BufferResource-DeLlYxf8.js.map} +1 -1
  3. package/dist/CanvasRenderer-BgLtSh22.js +5933 -0
  4. package/dist/CanvasRenderer-BgLtSh22.js.map +1 -0
  5. package/dist/Geometry-Bdq2tsB3.js +1017 -0
  6. package/dist/Geometry-Bdq2tsB3.js.map +1 -0
  7. package/dist/{RenderTargetSystem-CzB0gbGa.js → RenderTargetSystem-BCBByEgg.js} +1543 -501
  8. package/dist/RenderTargetSystem-BCBByEgg.js.map +1 -0
  9. package/dist/{WebGLRenderer-DtR6kMFT.js → WebGLRenderer-3x7mgYt9.js} +55 -54
  10. package/dist/{WebGLRenderer-DtR6kMFT.js.map → WebGLRenderer-3x7mgYt9.js.map} +1 -1
  11. package/dist/{WebGPURenderer-dabwtEl1.js → WebGPURenderer-CdbjQMqs.js} +242 -197
  12. package/dist/WebGPURenderer-CdbjQMqs.js.map +1 -0
  13. package/dist/{browserAll-BVcYDudp.js → browserAll-DejMU3y7.js} +3 -3
  14. package/dist/{browserAll-BVcYDudp.js.map → browserAll-DejMU3y7.js.map} +1 -1
  15. package/dist/getTextureBatchBindGroup-CHJWR-eE.js +23 -0
  16. package/dist/getTextureBatchBindGroup-CHJWR-eE.js.map +1 -0
  17. package/dist/hs-widget.es.js +2 -2
  18. package/dist/hs-widget.umd.js +210 -122
  19. package/dist/hs-widget.umd.js.map +1 -1
  20. package/dist/index-C1ZbqCjI.js +17937 -0
  21. package/dist/index-C1ZbqCjI.js.map +1 -0
  22. package/dist/{webworkerAll-7qf_N1bC.js → webworkerAll-D5g5Ds7S.js} +12 -12
  23. package/dist/{webworkerAll-7qf_N1bC.js.map → webworkerAll-D5g5Ds7S.js.map} +1 -1
  24. package/package.json +2 -1
  25. package/dist/CanvasRenderer-JN1g1jcS.js +0 -976
  26. package/dist/CanvasRenderer-JN1g1jcS.js.map +0 -1
  27. package/dist/Filter-CD8NI4d3.js +0 -57
  28. package/dist/Filter-CD8NI4d3.js.map +0 -1
  29. package/dist/RenderTargetSystem-CzB0gbGa.js.map +0 -1
  30. package/dist/WebGPURenderer-dabwtEl1.js.map +0 -1
  31. package/dist/index-X9A71QD8.js +0 -25701
  32. package/dist/index-X9A71QD8.js.map +0 -1
@@ -1,13 +1,14 @@
1
- import { D as R, a as F, i as d, x as P, d as B, w as p, g as z, b as ye, S as O, T as S, ai as Ce, J as q, aj as Ne, c as g, a9 as V, o as y, I as C, K as M, M as Z, ak as J, al as De, am as Q, an as Ie, ao as Ge, A as Ue, R as Fe, p as A } from "./index-X9A71QD8.js";
2
- import { e as Pe, G as Oe, c as Me, b as Le, U as we, B as ee, d as N, f as te, g as He } from "./BufferResource-DXhnw-dI.js";
3
- import { R as Ve, S as Xe, d as ke } from "./RenderTargetSystem-CzB0gbGa.js";
1
+ import { D as R, c as d, w as p, T as S, g as z, R as V, f as B, d as y, M as q, A as ye, e as A } from "./index-C1ZbqCjI.js";
2
+ import { G as F, e as Ce, S as g, R as Ne, h as Z, i as De, j as Q, k as Ie, l as Ge, b as Ue, d as Fe } from "./RenderTargetSystem-BCBByEgg.js";
3
+ import { e as Pe, G as Oe, c as Me, b as Le, U as we, B as J, d as C, f as ee, g as He } from "./BufferResource-DeLlYxf8.js";
4
+ import { S as P, b as N, g as te, G as Ve, d as O, e as Xe, U as M, R as ke } from "./Geometry-Bdq2tsB3.js";
4
5
  function We() {
5
6
  const { userAgent: t } = R.get().getNavigator();
6
7
  return /^((?!chrome|android).)*safari/i.test(t);
7
8
  }
8
9
  class re {
9
10
  constructor() {
10
- this._tempState = F.for2d(), this._didUploadHash = {};
11
+ this._tempState = P.for2d(), this._didUploadHash = {};
11
12
  }
12
13
  init(e) {
13
14
  e.renderer.runners.contextChange.add(this);
@@ -48,7 +49,7 @@ class ne {
48
49
  * @param {Renderer} renderer - The renderer this System works for.
49
50
  */
50
51
  constructor(e) {
51
- this._boundBufferBases = /* @__PURE__ */ Object.create(null), this._minBaseLocation = 0, this._nextBindBaseIndex = this._minBaseLocation, this._bindCallId = 0, this._renderer = e, this._managedBuffers = new P({
52
+ this._boundBufferBases = /* @__PURE__ */ Object.create(null), this._minBaseLocation = 0, this._nextBindBaseIndex = this._minBaseLocation, this._bindCallId = 0, this._renderer = e, this._managedBuffers = new F({
52
53
  renderer: e,
53
54
  type: "resource",
54
55
  onUnload: this.onBufferUnload.bind(this),
@@ -129,7 +130,7 @@ class ne {
129
130
  if (e._updateID === n.updateID)
130
131
  return n;
131
132
  n.updateID = e._updateID, r.bindBuffer(n.type, n.buffer);
132
- const s = e.data, i = e.descriptor.usage & B.STATIC ? r.STATIC_DRAW : r.DYNAMIC_DRAW;
133
+ const s = e.data, i = e.descriptor.usage & N.STATIC ? r.STATIC_DRAW : r.DYNAMIC_DRAW;
133
134
  return s ? n.byteLength >= s.byteLength ? r.bufferSubData(n.type, 0, s, 0, e._updateSize / s.BYTES_PER_ELEMENT) : (n.byteLength = s.byteLength, r.bufferData(n.type, s, i)) : (n.byteLength = e.descriptor.size, r.bufferData(n.type, n.byteLength, i)), n;
134
135
  }
135
136
  /**
@@ -151,7 +152,7 @@ class ne {
151
152
  createGLBuffer(e) {
152
153
  const { _gl: r } = this;
153
154
  let n = v.ARRAY_BUFFER;
154
- e.descriptor.usage & B.INDEX ? n = v.ELEMENT_ARRAY_BUFFER : e.descriptor.usage & B.UNIFORM && (n = v.UNIFORM_BUFFER);
155
+ e.descriptor.usage & N.INDEX ? n = v.ELEMENT_ARRAY_BUFFER : e.descriptor.usage & N.UNIFORM && (n = v.UNIFORM_BUFFER);
155
156
  const s = new je(r.createBuffer(), n);
156
157
  return e._gpuData[this._renderer.uid] = s, this._managedBuffers.add(e), s;
157
158
  }
@@ -368,7 +369,7 @@ L.defaultOptions = {
368
369
  */
369
370
  multiView: !1
370
371
  };
371
- let Ke = L;
372
+ let $e = L;
372
373
  var G = /* @__PURE__ */ ((t) => (t[t.RGBA = 6408] = "RGBA", t[t.RGB = 6407] = "RGB", t[t.RG = 33319] = "RG", t[t.RED = 6403] = "RED", t[t.RGBA_INTEGER = 36249] = "RGBA_INTEGER", t[t.RGB_INTEGER = 36248] = "RGB_INTEGER", t[t.RG_INTEGER = 33320] = "RG_INTEGER", t[t.RED_INTEGER = 36244] = "RED_INTEGER", t[t.ALPHA = 6406] = "ALPHA", t[t.LUMINANCE = 6409] = "LUMINANCE", t[t.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", t[t.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", t[t.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", t))(G || {}), w = /* @__PURE__ */ ((t) => (t[t.TEXTURE_2D = 3553] = "TEXTURE_2D", t[t.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", t[t.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", t[t.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", t[t.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", t[t.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", t[t.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", t))(w || {}), l = /* @__PURE__ */ ((t) => (t[t.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", t[t.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", t[t.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", t[t.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", t[t.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", t[t.UNSIGNED_INT = 5125] = "UNSIGNED_INT", t[t.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", t[t.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", t[t.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", t[t.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", t[t.BYTE = 5120] = "BYTE", t[t.SHORT = 5122] = "SHORT", t[t.INT = 5124] = "INT", t[t.FLOAT = 5126] = "FLOAT", t[t.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", t[t.HALF_FLOAT = 36193] = "HALF_FLOAT", t))(l || {});
373
374
  const X = {
374
375
  uint8x2: l.UNSIGNED_BYTE,
@@ -402,7 +403,7 @@ const X = {
402
403
  sint32x3: l.INT,
403
404
  sint32x4: l.INT
404
405
  };
405
- function $e(t) {
406
+ function Ke(t) {
406
407
  return X[t] ?? X.float32;
407
408
  }
408
409
  const Ye = {
@@ -423,7 +424,7 @@ class ze {
423
424
  class ie {
424
425
  /** @param renderer - The renderer this System works for. */
425
426
  constructor(e) {
426
- this._renderer = e, this._activeGeometry = null, this._activeVao = null, this.hasVao = !0, this.hasInstance = !0, this._managedGeometries = new P({
427
+ this._renderer = e, this._activeGeometry = null, this._activeVao = null, this.hasVao = !0, this.hasInstance = !0, this._managedGeometries = new F({
427
428
  renderer: e,
428
429
  type: "resource",
429
430
  onUnload: this.onGeometryUnload.bind(this),
@@ -554,7 +555,7 @@ class ie {
554
555
  a !== f && (s.bind(_), a = f);
555
556
  const m = h.location;
556
557
  n.enableVertexAttribArray(m);
557
- const b = z(c.format), E = $e(c.format);
558
+ const b = te(c.format), E = Ke(c.format);
558
559
  if (((o = h.format) == null ? void 0 : o.substring(1, 4)) === "int" ? n.vertexAttribIPointer(
559
560
  m,
560
561
  b.size,
@@ -610,7 +611,7 @@ ie.extension = {
610
611
  ],
611
612
  name: "geometry"
612
613
  };
613
- const qe = new Ce({
614
+ const qe = new Xe({
614
615
  attributes: {
615
616
  aPosition: [
616
617
  -1,
@@ -630,8 +631,8 @@ const qe = new Ce({
630
631
  }
631
632
  init(e = {}) {
632
633
  const { useBackBuffer: r, antialias: n } = { ...ae.defaultOptions, ...e };
633
- this.useBackBuffer = r, this._antialias = n, this._renderer.context.supports.msaa || (p("antialiasing, is not supported on when using the back buffer"), this._antialias = !1), this._state = F.for2d();
634
- const s = new ye({
634
+ this.useBackBuffer = r, this._antialias = n, this._renderer.context.supports.msaa || (p("antialiasing, is not supported on when using the back buffer"), this._antialias = !1), this._state = P.for2d();
635
+ const s = new Ve({
635
636
  vertex: `
636
637
  attribute vec2 aPosition;
637
638
  out vec2 vUv;
@@ -687,7 +688,7 @@ const qe = new Ce({
687
688
  }
688
689
  _getBackBufferTexture(e) {
689
690
  return this._backBufferTexture = this._backBufferTexture || new S({
690
- source: new q({
691
+ source: new z({
691
692
  width: e.width,
692
693
  height: e.height,
693
694
  resolution: e._resolution,
@@ -764,7 +765,7 @@ class ue {
764
765
  }
765
766
  contextChange() {
766
767
  const e = this._renderer.gl;
767
- this.maxTextures = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS), this.maxBatchableTextures = Ne(this.maxTextures, e);
768
+ this.maxTextures = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS), this.maxBatchableTextures = Ce(this.maxTextures, e);
768
769
  const r = this._renderer.context.webGLVersion === 2;
769
770
  this.maxUniformBindings = r ? e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS) : 0;
770
771
  }
@@ -777,7 +778,7 @@ ue.extension = {
777
778
  ],
778
779
  name: "limits"
779
780
  };
780
- class Je {
781
+ class Qe {
781
782
  constructor() {
782
783
  this.width = -1, this.height = -1, this.msaa = !1, this._attachedMipLevel = 0, this._attachedLayer = 0, this.msaaRenderBuffer = [];
783
784
  }
@@ -867,7 +868,7 @@ const fe = {
867
868
  // mat3: 16 * 3,
868
869
  // mat4: 16 * 4,
869
870
  };
870
- function Qe(t) {
871
+ function Je(t) {
871
872
  const e = t.map((i) => ({
872
873
  data: i,
873
874
  offset: 0,
@@ -917,7 +918,7 @@ function tt(t) {
917
918
  class he extends we {
918
919
  constructor() {
919
920
  super({
920
- createUboElements: Qe,
921
+ createUboElements: Je,
921
922
  generateUboSync: tt
922
923
  });
923
924
  }
@@ -1029,8 +1030,8 @@ class rt {
1029
1030
  ), s.bindFramebuffer(s.FRAMEBUFFER, n.framebuffer);
1030
1031
  }
1031
1032
  initGpuRenderTarget(e) {
1032
- const n = this._renderer.gl, s = new Je();
1033
- return s._attachedMipLevel = 0, s._attachedLayer = 0, e.colorTexture instanceof y ? (this._renderer.context.ensureCanvasSize(e.colorTexture.resource), s.framebuffer = null, s) : (this._initColor(e, s), n.bindFramebuffer(n.FRAMEBUFFER, null), s);
1033
+ const n = this._renderer.gl, s = new Qe();
1034
+ return s._attachedMipLevel = 0, s._attachedLayer = 0, e.colorTexture instanceof B ? (this._renderer.context.ensureCanvasSize(e.colorTexture.resource), s.framebuffer = null, s) : (this._initColor(e, s), n.bindFramebuffer(n.FRAMEBUFFER, null), s);
1034
1035
  }
1035
1036
  destroyGpuRenderTarget(e) {
1036
1037
  const r = this._renderer.gl;
@@ -1043,9 +1044,9 @@ class rt {
1043
1044
  if (a !== 0)
1044
1045
  throw new Error("[RenderTargetSystem] Clearing array layers is not supported in WebGL renderer.");
1045
1046
  const o = this._renderTargetSystem;
1046
- typeof r == "boolean" && (r = r ? C.ALL : C.NONE);
1047
+ typeof r == "boolean" && (r = r ? y.ALL : y.NONE);
1047
1048
  const u = this._renderer.gl;
1048
- if (r & C.COLOR) {
1049
+ if (r & y.COLOR) {
1049
1050
  n ?? (n = o.defaultClearColor);
1050
1051
  const c = this._clearColorCache, _ = n;
1051
1052
  (c[0] !== _[0] || c[1] !== _[1] || c[2] !== _[2] || c[3] !== _[3]) && (c[0] = _[0], c[1] = _[1], c[2] = _[2], c[3] = _[3], u.clearColor(_[0], _[1], _[2], _[3]));
@@ -1162,10 +1163,10 @@ class rt {
1162
1163
  }
1163
1164
  prerender(e) {
1164
1165
  const r = e.colorTexture.resource;
1165
- this._renderer.context.multiView && y.test(r) && this._renderer.context.ensureCanvasSize(r);
1166
+ this._renderer.context.multiView && B.test(r) && this._renderer.context.ensureCanvasSize(r);
1166
1167
  }
1167
1168
  postrender(e) {
1168
- if (this._renderer.context.multiView && y.test(e.colorTexture.resource)) {
1169
+ if (this._renderer.context.multiView && B.test(e.colorTexture.resource)) {
1169
1170
  const r = this._renderer.context.canvas, n = e.colorTexture;
1170
1171
  n.context2D.drawImage(
1171
1172
  r,
@@ -1183,7 +1184,7 @@ class rt {
1183
1184
  r.drawBuffers(s);
1184
1185
  }
1185
1186
  }
1186
- class le extends Ve {
1187
+ class le extends Ne {
1187
1188
  constructor(e) {
1188
1189
  super(e), this.adaptor = new rt(), this.adaptor.init(e, this);
1189
1190
  }
@@ -1223,7 +1224,7 @@ function nt(t, e) {
1223
1224
  r.push(`
1224
1225
  ugS.updateUniformGroup(resources[${_}], p, sD);
1225
1226
  `);
1226
- else if (f instanceof ee) {
1227
+ else if (f instanceof J) {
1227
1228
  const h = t._uniformBindMap[u][Number(_)];
1228
1229
  r.push(`
1229
1230
  sS.bindUniformBlock(
@@ -1232,7 +1233,7 @@ function nt(t, e) {
1232
1233
  ${t.glProgram._uniformBlockData[h].index}
1233
1234
  );
1234
1235
  `);
1235
- } else if (f instanceof q) {
1236
+ } else if (f instanceof z) {
1236
1237
  const h = t._uniformBindMap[u][_], m = a.uniformData[h];
1237
1238
  m && (s || (s = !0, n.push(`
1238
1239
  var tS = r.texture;
@@ -1420,7 +1421,7 @@ function ot(t, e, r = !1) {
1420
1421
  location: 0,
1421
1422
  // set further down..
1422
1423
  format: u,
1423
- stride: z(u).stride,
1424
+ stride: te(u).stride,
1424
1425
  offset: 0,
1425
1426
  instance: !1,
1426
1427
  start: 0
@@ -1720,17 +1721,17 @@ function dt(t, e) {
1720
1721
  renderer.shader.bindUniformBlock(uv.${n}, "${n}");
1721
1722
  `) : r.push(`
1722
1723
  renderer.shader.updateUniformGroup(uv.${n});
1723
- `) : t.uniforms[n] instanceof ee && r.push(`
1724
+ `) : t.uniforms[n] instanceof J && r.push(`
1724
1725
  renderer.shader.bindBufferResource(uv.${n}, "${n}");
1725
1726
  `);
1726
1727
  continue;
1727
1728
  }
1728
1729
  const s = t.uniformStructures[n];
1729
1730
  let i = !1;
1730
- for (let a = 0; a < N.length; a++) {
1731
- const o = N[a];
1731
+ for (let a = 0; a < C.length; a++) {
1732
+ const o = C[a];
1732
1733
  if (s.type === o.type && o.test(s)) {
1733
- r.push(`name = "${n}";`, N[a].uniform), i = !0;
1734
+ r.push(`name = "${n}";`, C[a].uniform), i = !0;
1734
1735
  break;
1735
1736
  }
1736
1737
  }
@@ -1818,7 +1819,7 @@ function mt(t) {
1818
1819
  }
1819
1820
  const Et = 0, bt = 1, pt = 2, St = 3, Rt = 4, gt = 5, pe = class U {
1820
1821
  constructor(e) {
1821
- this._invertFrontFace = !1, this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = "none", this._blendEq = !1, this.map = [], this.map[Et] = this.setBlend, this.map[bt] = this.setOffset, this.map[pt] = this.setCullFace, this.map[St] = this.setDepthTest, this.map[Rt] = this.setFrontFace, this.map[gt] = this.setDepthMask, this.checks = [], this.defaultState = F.for2d(), e.renderTarget.onRenderTargetChange.add(this);
1822
+ this._invertFrontFace = !1, this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = "none", this._blendEq = !1, this.map = [], this.map[Et] = this.setBlend, this.map[bt] = this.setOffset, this.map[pt] = this.setCullFace, this.map[St] = this.setDepthTest, this.map[Rt] = this.setFrontFace, this.map[gt] = this.setDepthMask, this.checks = [], this.defaultState = P.for2d(), e.renderTarget.onRenderTargetChange.add(this);
1822
1823
  }
1823
1824
  onRenderTargetChange(e) {
1824
1825
  this._invertFrontFace = !e.isRoot, this._cullFace ? this.setFrontFace(this._frontFace) : this._frontFaceDirty = !0;
@@ -2080,14 +2081,14 @@ const vt = {
2080
2081
  ), o = Math.max(o >> 1, 1), u = Math.max(u >> 1, 1);
2081
2082
  }
2082
2083
  }
2083
- }, K = ["right", "left", "top", "bottom", "front", "back"];
2084
+ }, $ = ["right", "left", "top", "bottom", "front", "back"];
2084
2085
  function yt(t) {
2085
2086
  return {
2086
2087
  id: "cube",
2087
2088
  upload(e, r, n, s) {
2088
2089
  const i = e.faces;
2089
- for (let a = 0; a < K.length; a++) {
2090
- const o = K[a], u = i[o];
2090
+ for (let a = 0; a < $.length; a++) {
2091
+ const o = $[a], u = i[o];
2091
2092
  (t[u.uploadMethodId] || t.image).upload(
2092
2093
  u,
2093
2094
  r,
@@ -2235,7 +2236,7 @@ const Dt = We(), It = {
2235
2236
  }
2236
2237
  Se.upload(t, e, r, n, s, i);
2237
2238
  }
2238
- }, $ = {
2239
+ }, K = {
2239
2240
  linear: 9729,
2240
2241
  nearest: 9728
2241
2242
  }, Gt = {
@@ -2267,13 +2268,13 @@ function Y(t, e, r, n, s, i, a, o) {
2267
2268
  const c = I[a ? "clamp-to-edge" : t.addressModeU], _ = I[a ? "clamp-to-edge" : t.addressModeV], f = I[a ? "clamp-to-edge" : t.addressModeW];
2268
2269
  e[s](u, e.TEXTURE_WRAP_S, c), e[s](u, e.TEXTURE_WRAP_T, _), e.TEXTURE_WRAP_R && e[s](u, e.TEXTURE_WRAP_R, f);
2269
2270
  }
2270
- if ((!o || t.magFilter !== "linear") && e[s](u, e.TEXTURE_MAG_FILTER, $[t.magFilter]), r) {
2271
+ if ((!o || t.magFilter !== "linear") && e[s](u, e.TEXTURE_MAG_FILTER, K[t.magFilter]), r) {
2271
2272
  if (!o || t.mipmapFilter !== "linear") {
2272
2273
  const c = Gt[t.minFilter][t.mipmapFilter];
2273
2274
  e[s](u, e.TEXTURE_MIN_FILTER, c);
2274
2275
  }
2275
2276
  } else
2276
- e[s](u, e.TEXTURE_MIN_FILTER, $[t.minFilter]);
2277
+ e[s](u, e.TEXTURE_MIN_FILTER, K[t.minFilter]);
2277
2278
  if (n && t.maxAnisotropy > 1) {
2278
2279
  const c = Math.min(t.maxAnisotropy, e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));
2279
2280
  e[s](u, n.TEXTURE_MAX_ANISOTROPY_EXT, c);
@@ -2524,7 +2525,7 @@ function Mt(t) {
2524
2525
  const Lt = 4;
2525
2526
  class Re {
2526
2527
  constructor(e) {
2527
- this._glSamplers = /* @__PURE__ */ Object.create(null), this._boundTextures = [], this._activeTextureLocation = -1, this._boundSamplers = /* @__PURE__ */ Object.create(null), this._premultiplyAlpha = !1, this._useSeparateSamplers = !1, this._renderer = e, this._managedTextures = new P({
2528
+ this._glSamplers = /* @__PURE__ */ Object.create(null), this._boundTextures = [], this._activeTextureLocation = -1, this._boundSamplers = /* @__PURE__ */ Object.create(null), this._premultiplyAlpha = !1, this._useSeparateSamplers = !1, this._renderer = e, this._managedTextures = new F({
2528
2529
  renderer: e,
2529
2530
  type: "resource",
2530
2531
  onUnload: this.onSourceUnload.bind(this),
@@ -2805,14 +2806,14 @@ class ge {
2805
2806
  contextChange(e) {
2806
2807
  const r = new M({
2807
2808
  uColor: { value: new Float32Array([1, 1, 1, 1]), type: "vec4<f32>" },
2808
- uTransformMatrix: { value: new Z(), type: "mat3x3<f32>" },
2809
+ uTransformMatrix: { value: new q(), type: "mat3x3<f32>" },
2809
2810
  uRound: { value: 0, type: "f32" }
2810
- }), n = e.limits.maxBatchableTextures, s = J({
2811
+ }), n = e.limits.maxBatchableTextures, s = Z({
2811
2812
  name: "graphics",
2812
2813
  bits: [
2813
2814
  De,
2814
2815
  Ie(n),
2815
- te,
2816
+ ee,
2816
2817
  Q
2817
2818
  ]
2818
2819
  });
@@ -2852,10 +2853,10 @@ ge.extension = {
2852
2853
  };
2853
2854
  class Te {
2854
2855
  init() {
2855
- const e = J({
2856
+ const e = Z({
2856
2857
  name: "mesh",
2857
2858
  bits: [
2858
- te,
2859
+ ee,
2859
2860
  He,
2860
2861
  Q
2861
2862
  ]
@@ -2865,7 +2866,7 @@ class Te {
2865
2866
  resources: {
2866
2867
  uTexture: S.EMPTY.source,
2867
2868
  textureUniforms: {
2868
- uTextureMatrix: { type: "mat3x3<f32>", value: new Z() }
2869
+ uTextureMatrix: { type: "mat3x3<f32>", value: new q() }
2869
2870
  }
2870
2871
  }
2871
2872
  });
@@ -2900,10 +2901,10 @@ Te.extension = {
2900
2901
  name: "mesh"
2901
2902
  };
2902
2903
  const wt = [
2903
- ...Xe,
2904
+ ...Ue,
2904
2905
  he,
2905
2906
  Ze,
2906
- Ke,
2907
+ $e,
2907
2908
  ue,
2908
2909
  ne,
2909
2910
  Re,
@@ -2915,16 +2916,16 @@ const wt = [
2915
2916
  Tt,
2916
2917
  _e,
2917
2918
  oe
2918
- ], Ht = [...ke], Vt = [re, Te, ge], xe = [], ve = [], Ae = [];
2919
+ ], Ht = [...Fe], Vt = [re, Te, ge], xe = [], ve = [], Ae = [];
2919
2920
  A.handleByNamedList(d.WebGLSystem, xe);
2920
2921
  A.handleByNamedList(d.WebGLPipes, ve);
2921
2922
  A.handleByNamedList(d.WebGLPipesAdaptor, Ae);
2922
2923
  A.add(...wt, ...Ht, ...Vt);
2923
- class jt extends Ue {
2924
+ class $t extends ye {
2924
2925
  constructor() {
2925
2926
  const e = {
2926
2927
  name: "webgl",
2927
- type: Fe.WEBGL,
2928
+ type: ke.WEBGL,
2928
2929
  systems: xe,
2929
2930
  renderPipes: ve,
2930
2931
  renderPipeAdaptors: Ae
@@ -2933,6 +2934,6 @@ class jt extends Ue {
2933
2934
  }
2934
2935
  }
2935
2936
  export {
2936
- jt as WebGLRenderer
2937
+ $t as WebGLRenderer
2937
2938
  };
2938
- //# sourceMappingURL=WebGLRenderer-DtR6kMFT.js.map
2939
+ //# sourceMappingURL=WebGLRenderer-3x7mgYt9.js.map