@xeokit/xeokit-sdk 2.4.0-alpha-19 → 2.4.0-alpha-21

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.
@@ -8944,7 +8944,7 @@ class VBOSceneModelNode {
8944
8944
 
8945
8945
  }
8946
8946
 
8947
- const tempVec3a$1h = math.vec3();
8947
+ const tempVec3a$1i = math.vec3();
8948
8948
 
8949
8949
  /**
8950
8950
  * Given a view matrix and a relative-to-center (RTC) coordinate origin, returns a view matrix
@@ -9024,7 +9024,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
9024
9024
  */
9025
9025
  function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
9026
9026
 
9027
- const center = math.getPositionsCenter(worldPositions, tempVec3a$1h);
9027
+ const center = math.getPositionsCenter(worldPositions, tempVec3a$1i);
9028
9028
 
9029
9029
  const rtcCenterX = Math.round(center[0] / cellSize) * cellSize;
9030
9030
  const rtcCenterY = Math.round(center[1] / cellSize) * cellSize;
@@ -9060,7 +9060,7 @@ function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
9060
9060
  */
9061
9061
  function getPlaneRTCPos(dist, dir, rtcCenter, rtcPlanePos) {
9062
9062
  const rtcCenterToPlaneDist = math.dotVec3(dir, rtcCenter) + dist;
9063
- const dirNormalized = math.normalizeVec3(dir, tempVec3a$1h);
9063
+ const dirNormalized = math.normalizeVec3(dir, tempVec3a$1i);
9064
9064
  math.mulVec3Scalar(dirNormalized, -rtcCenterToPlaneDist, rtcPlanePos);
9065
9065
  return rtcPlanePos;
9066
9066
  }
@@ -9524,6 +9524,12 @@ class Wire {
9524
9524
  });
9525
9525
  }
9526
9526
 
9527
+ if (cfg.onMouseWheel) {
9528
+ wireClickable.addEventListener('wheel', (event) => {
9529
+ cfg.onMouseWheel(event, this);
9530
+ });
9531
+ }
9532
+
9527
9533
  if (cfg.onContextMenu) {
9528
9534
  wireClickable.addEventListener('contextmenu', (event) => {
9529
9535
  cfg.onContextMenu(event, this);
@@ -9679,6 +9685,12 @@ class Dot {
9679
9685
  });
9680
9686
  }
9681
9687
 
9688
+ if (cfg.onMouseWheel) {
9689
+ dotClickable.addEventListener('wheel', (event) => {
9690
+ cfg.onMouseWheel(event, this);
9691
+ });
9692
+ }
9693
+
9682
9694
  if (cfg.onContextMenu) {
9683
9695
  dotClickable.addEventListener('contextmenu', (event) => {
9684
9696
  cfg.onContextMenu(event, this);
@@ -9803,6 +9815,12 @@ class Label {
9803
9815
  });
9804
9816
  }
9805
9817
 
9818
+ if (cfg.onMouseWheel) {
9819
+ label.addEventListener('wheel', (event) => {
9820
+ cfg.onMouseWheel(event, this);
9821
+ });
9822
+ }
9823
+
9806
9824
  if (cfg.onContextMenu) {
9807
9825
  label.addEventListener('contextmenu', (event) => {
9808
9826
  cfg.onContextMenu(event, this);
@@ -11697,8 +11715,8 @@ class Annotation extends Marker {
11697
11715
  }
11698
11716
  }
11699
11717
 
11700
- const tempVec3a$1g = math.vec3();
11701
- const tempVec3b$c = math.vec3();
11718
+ const tempVec3a$1h = math.vec3();
11719
+ const tempVec3b$d = math.vec3();
11702
11720
  const tempVec3c$9 = math.vec3();
11703
11721
 
11704
11722
  /**
@@ -12175,8 +12193,8 @@ class AnnotationsPlugin extends Plugin {
12175
12193
  if (!pickResult.worldPos || !pickResult.worldNormal) {
12176
12194
  this.error("Param 'pickResult' does not have both worldPos and worldNormal");
12177
12195
  } else {
12178
- const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1g);
12179
- const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$c);
12196
+ const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1h);
12197
+ const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$d);
12180
12198
  const offsetWorldPos = math.addVec3(pickResult.worldPos, offsetVec, tempVec3c$9);
12181
12199
  worldPos = offsetWorldPos;
12182
12200
  entity = pickResult.entity;
@@ -14372,7 +14390,7 @@ const MARKER_COLOR = math.vec3([1.0, 0.0, 0.0]);
14372
14390
  const POINT_SIZE = 20;
14373
14391
  const MARKER_SPRITE_CLIPZ_OFFSET = -0.001; // Amount that we offset sprite clip Z coords to raise them from surfaces
14374
14392
 
14375
- const tempVec3a$1f = math.vec3();
14393
+ const tempVec3a$1g = math.vec3();
14376
14394
 
14377
14395
  /**
14378
14396
  * Manages occlusion testing. Private member of a Renderer.
@@ -14709,7 +14727,7 @@ class OcclusionTester {
14709
14727
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
14710
14728
  if (active) {
14711
14729
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
14712
- gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f));
14730
+ gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1g));
14713
14731
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
14714
14732
  }
14715
14733
  }
@@ -18714,7 +18732,7 @@ class CustomProjection extends Component {
18714
18732
  }
18715
18733
 
18716
18734
  const tempVec3$6 = math.vec3();
18717
- const tempVec3b$b = math.vec3();
18735
+ const tempVec3b$c = math.vec3();
18718
18736
  const tempVec3c$8 = math.vec3();
18719
18737
  const tempVec3d$4 = math.vec3();
18720
18738
  const tempVec3e$3 = math.vec3();
@@ -19024,7 +19042,7 @@ class Camera extends Component {
19024
19042
  orbitYaw(angleInc) {
19025
19043
  let lookEyeVec = math.subVec3(this._eye, this._look, tempVec3$6);
19026
19044
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19027
- lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$b);
19045
+ lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$c);
19028
19046
  this.eye = math.addVec3(this._look, lookEyeVec, tempVec3c$8); // Set eye position as 'look' plus 'eye' vector
19029
19047
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4); // Rotate 'up' vector
19030
19048
  }
@@ -19042,7 +19060,7 @@ class Camera extends Component {
19042
19060
  }
19043
19061
  }
19044
19062
  let eye2 = math.subVec3(this._eye, this._look, tempVec3$6);
19045
- const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19063
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
19046
19064
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19047
19065
  eye2 = math.transformPoint3(tempMat, eye2, tempVec3d$4);
19048
19066
  this.up = math.transformPoint3(tempMat, this._up, tempVec3e$3);
@@ -19057,7 +19075,7 @@ class Camera extends Component {
19057
19075
  yaw(angleInc) {
19058
19076
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19059
19077
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19060
- look2 = math.transformPoint3(tempMat, look2, tempVec3b$b);
19078
+ look2 = math.transformPoint3(tempMat, look2, tempVec3b$c);
19061
19079
  this.look = math.addVec3(look2, this._eye, tempVec3c$8);
19062
19080
  if (this._gimbalLock) {
19063
19081
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4);
@@ -19077,7 +19095,7 @@ class Camera extends Component {
19077
19095
  }
19078
19096
  }
19079
19097
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19080
- const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19098
+ const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
19081
19099
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19082
19100
  this.up = math.transformPoint3(tempMat, this._up, tempVec3f$3);
19083
19101
  look2 = math.transformPoint3(tempMat, look2, tempVec3d$4);
@@ -19094,7 +19112,7 @@ class Camera extends Component {
19094
19112
  const vec = [0, 0, 0];
19095
19113
  let v;
19096
19114
  if (pan[0] !== 0) {
19097
- const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$b));
19115
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$c));
19098
19116
  v = math.mulVec3Scalar(left, pan[0]);
19099
19117
  vec[0] += v[0];
19100
19118
  vec[1] += v[1];
@@ -19123,7 +19141,7 @@ class Camera extends Component {
19123
19141
  */
19124
19142
  zoom(delta) {
19125
19143
  const vec = math.subVec3(this._eye, this._look, tempVec3$6);
19126
- const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$b));
19144
+ const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$c));
19127
19145
  const newLenLook = Math.abs(lenLook + delta);
19128
19146
  if (newLenLook < 0.5) {
19129
19147
  return;
@@ -19585,7 +19603,7 @@ class Camera extends Component {
19585
19603
  }
19586
19604
 
19587
19605
  const tempVec4$9 = math.vec4();
19588
- const tempVec3a$1e = math.vec3();
19606
+ const tempVec3a$1f = math.vec3();
19589
19607
 
19590
19608
  /**
19591
19609
  * @private
@@ -19672,7 +19690,7 @@ class TrianglesDataTextureColorRenderer {
19672
19690
  if (active) {
19673
19691
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
19674
19692
  if (origin) {
19675
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
19693
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f);
19676
19694
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
19677
19695
  } else {
19678
19696
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20199,7 +20217,7 @@ class TrianglesDataTextureColorRenderer {
20199
20217
 
20200
20218
  const defaultColor$6 = new Float32Array([1, 1, 1]);
20201
20219
  math.vec4();
20202
- const tempVec3a$1d = math.vec3();
20220
+ const tempVec3a$1e = math.vec3();
20203
20221
 
20204
20222
  /**
20205
20223
  * @private
@@ -20307,7 +20325,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20307
20325
  if (active) {
20308
20326
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20309
20327
  if (origin) {
20310
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20328
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
20311
20329
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20312
20330
  } else {
20313
20331
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20663,7 +20681,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20663
20681
  }
20664
20682
  }
20665
20683
 
20666
- const tempVec3a$1c = math.vec3();
20684
+ const tempVec3a$1d = math.vec3();
20667
20685
  const defaultColor$5 = new Float32Array([0,0,0,1]);
20668
20686
 
20669
20687
  /**
@@ -20763,7 +20781,7 @@ class TrianglesDataTextureEdgesRenderer {
20763
20781
  if (active) {
20764
20782
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20765
20783
  if (origin) {
20766
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
20784
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20767
20785
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20768
20786
  } else {
20769
20787
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21082,7 +21100,7 @@ class TrianglesDataTextureEdgesRenderer {
21082
21100
  }
21083
21101
  }
21084
21102
 
21085
- const tempVec3a$1b = math.vec3();
21103
+ const tempVec3a$1c = math.vec3();
21086
21104
 
21087
21105
  /**
21088
21106
  * @private
@@ -21156,7 +21174,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21156
21174
  if (active) {
21157
21175
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21158
21176
  if (origin) {
21159
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21177
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
21160
21178
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21161
21179
  } else {
21162
21180
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21484,7 +21502,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21484
21502
  }
21485
21503
  }
21486
21504
 
21487
- const tempVec3a$1a = math.vec3();
21505
+ const tempVec3a$1b = math.vec3();
21488
21506
 
21489
21507
  /**
21490
21508
  * @private
@@ -21571,7 +21589,7 @@ class TrianglesDataTexturePickMeshRenderer {
21571
21589
  if (active) {
21572
21590
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21573
21591
  if (origin) {
21574
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
21592
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21575
21593
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21576
21594
  } else {
21577
21595
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21927,7 +21945,7 @@ class TrianglesDataTexturePickMeshRenderer {
21927
21945
  }
21928
21946
  }
21929
21947
 
21930
- const tempVec3a$19 = math.vec3();
21948
+ const tempVec3a$1a = math.vec3();
21931
21949
 
21932
21950
  /**
21933
21951
  * @private
@@ -22019,7 +22037,7 @@ class TrianglesDataTexturePickDepthRenderer {
22019
22037
  if (active) {
22020
22038
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22021
22039
  if (origin) {
22022
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22040
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
22023
22041
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22024
22042
  } else {
22025
22043
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -22378,7 +22396,7 @@ class TrianglesDataTexturePickDepthRenderer {
22378
22396
  }
22379
22397
  }
22380
22398
 
22381
- const tempVec3a$18 = math.vec3();
22399
+ const tempVec3a$19 = math.vec3();
22382
22400
 
22383
22401
  /**
22384
22402
  * @private
@@ -22470,7 +22488,7 @@ class TrianglesDataTexturePickNormalsRenderer {
22470
22488
  if (active) {
22471
22489
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22472
22490
  if (origin) {
22473
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
22491
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22474
22492
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22475
22493
  } else {
22476
22494
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23034,7 +23052,7 @@ class TrianglesDataTextureOcclusionRenderer {
23034
23052
  }
23035
23053
 
23036
23054
  math.vec4();
23037
- const tempVec3a$17 = math.vec3();
23055
+ const tempVec3a$18 = math.vec3();
23038
23056
 
23039
23057
  /**
23040
23058
  * @private
@@ -23119,7 +23137,7 @@ class TrianglesDataTextureDepthRenderer {
23119
23137
  if (active) {
23120
23138
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23121
23139
  if (origin) {
23122
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23140
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
23123
23141
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23124
23142
  } else {
23125
23143
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23490,7 +23508,7 @@ class TrianglesDataTextureDepthRenderer {
23490
23508
  }
23491
23509
  }
23492
23510
 
23493
- const tempVec3a$16 = math.vec3();
23511
+ const tempVec3a$17 = math.vec3();
23494
23512
 
23495
23513
  /**
23496
23514
  * @private
@@ -23553,7 +23571,7 @@ class TrianglesDataTextureNormalsRenderer {
23553
23571
  if (active) {
23554
23572
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23555
23573
  if (origin) {
23556
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
23574
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23557
23575
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23558
23576
  } else {
23559
23577
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23983,7 +24001,7 @@ class TrianglesDataTextureShadowRenderer {
23983
24001
  }
23984
24002
 
23985
24003
  const tempVec4$8 = math.vec4();
23986
- const tempVec3a$15 = math.vec3();
24004
+ const tempVec3a$16 = math.vec3();
23987
24005
 
23988
24006
  const TEXTURE_DECODE_FUNCS$2 = {
23989
24007
  "linear": "linearToLinear",
@@ -24054,7 +24072,7 @@ class TrianglesDataTextureColorQualityRenderer {
24054
24072
  if (active) {
24055
24073
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24056
24074
  if (origin) {
24057
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24075
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
24058
24076
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24059
24077
  } else {
24060
24078
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -24793,7 +24811,7 @@ class TrianglesDataTextureColorQualityRenderer {
24793
24811
  }
24794
24812
  }
24795
24813
 
24796
- const tempVec3a$14 = math.vec3();
24814
+ const tempVec3a$15 = math.vec3();
24797
24815
 
24798
24816
  /**
24799
24817
  * @private
@@ -24907,7 +24925,7 @@ class TrianglesDataTexturePickNormalsFlatRenderer {
24907
24925
  if (active) {
24908
24926
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24909
24927
  if (origin) {
24910
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$14);
24928
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24911
24929
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24912
24930
  } else {
24913
24931
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -27644,8 +27662,8 @@ const tempUint8Array4 = new Uint8Array (4);
27644
27662
 
27645
27663
  const tempFloat32Array3 = new Float32Array (3);
27646
27664
 
27647
- const tempVec3a$13 = math.vec3();
27648
- const tempVec3b$a = math.vec3();
27665
+ const tempVec3a$14 = math.vec3();
27666
+ const tempVec3b$b = math.vec3();
27649
27667
  const tempVec3c$7 = math.vec3();
27650
27668
  const tempVec3d$3 = math.vec3();
27651
27669
  const tempVec3e$2 = math.vec3();
@@ -29270,8 +29288,8 @@ class TrianglesDataTextureLayer {
29270
29288
  const origin = state.origin;
29271
29289
  const offset = portion.offset;
29272
29290
 
29273
- const rtcRayOrigin = tempVec3a$13;
29274
- const rtcRayDir = tempVec3b$a;
29291
+ const rtcRayOrigin = tempVec3a$14;
29292
+ const rtcRayDir = tempVec3b$b;
29275
29293
 
29276
29294
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$7) : worldRayOrigin); // World -> RTC
29277
29295
  rtcRayDir.set(worldRayDir);
@@ -32120,7 +32138,7 @@ class ViewFrustumCullingManager {
32120
32138
 
32121
32139
  WEBGL_INFO.SUPPORTED_EXTENSIONS["ANGLE_instanced_arrays"];
32122
32140
 
32123
- const tempVec3a$12 = math.vec3();
32141
+ const tempVec3a$13 = math.vec3();
32124
32142
  const tempMat4$3 = math.mat4();
32125
32143
 
32126
32144
  const defaultScale$1 = math.vec3([1, 1, 1]);
@@ -33092,7 +33110,7 @@ class DataTextureSceneModel extends Component {
33092
33110
  }
33093
33111
 
33094
33112
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
33095
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$12) : this._origin;
33113
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$13) : this._origin;
33096
33114
 
33097
33115
  switch (primitive) {
33098
33116
  case "triangles":
@@ -33356,7 +33374,7 @@ class DataTextureSceneModel extends Component {
33356
33374
  if (!origin) {
33357
33375
  origin = cfgOrigin;
33358
33376
  } else {
33359
- origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$12);
33377
+ origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$13);
33360
33378
  }
33361
33379
  } else {
33362
33380
  origin = this._origin;
@@ -45984,7 +46002,7 @@ function buildFragmentDraw(mesh) {
45984
46002
  * @author xeolabs / https://github.com/xeolabs
45985
46003
  */
45986
46004
 
45987
- const tempVec3a$11 = math.vec3();
46005
+ const tempVec3a$12 = math.vec3();
45988
46006
 
45989
46007
  const ids$2 = new Map$1({});
45990
46008
 
@@ -46083,7 +46101,7 @@ DrawRenderer.prototype.drawMesh = function (frameCtx, mesh) {
46083
46101
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
46084
46102
  if (active) {
46085
46103
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
46086
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
46104
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$12) : sectionPlane.pos);
46087
46105
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
46088
46106
  }
46089
46107
  }
@@ -47221,7 +47239,7 @@ function buildFragment$5(mesh) {
47221
47239
 
47222
47240
  const ids$1 = new Map$1({});
47223
47241
 
47224
- const tempVec3a$10 = math.vec3();
47242
+ const tempVec3a$11 = math.vec3();
47225
47243
 
47226
47244
  /**
47227
47245
  * @private
@@ -47305,7 +47323,7 @@ EmphasisFillRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47305
47323
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47306
47324
  if (active) {
47307
47325
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47308
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47326
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
47309
47327
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47310
47328
  }
47311
47329
  }
@@ -47641,7 +47659,7 @@ function buildFragment$4(mesh) {
47641
47659
 
47642
47660
  const ids = new Map$1({});
47643
47661
 
47644
- const tempVec3a$$ = math.vec3();
47662
+ const tempVec3a$10 = math.vec3();
47645
47663
 
47646
47664
  /**
47647
47665
  * @private
@@ -47724,7 +47742,7 @@ EmphasisEdgesRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47724
47742
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47725
47743
  if (active) {
47726
47744
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47727
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
47745
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47728
47746
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47729
47747
  }
47730
47748
  }
@@ -48019,7 +48037,7 @@ function buildFragment$3(mesh) {
48019
48037
  * @author xeolabs / https://github.com/xeolabs
48020
48038
  */
48021
48039
 
48022
- const tempVec3a$_ = math.vec3();
48040
+ const tempVec3a$$ = math.vec3();
48023
48041
 
48024
48042
  // No ID, because there is exactly one PickMeshRenderer per scene
48025
48043
 
@@ -48103,7 +48121,7 @@ PickMeshRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48103
48121
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48104
48122
  if (active) {
48105
48123
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48106
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48124
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
48107
48125
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48108
48126
  }
48109
48127
  }
@@ -48336,7 +48354,7 @@ function buildFragment$2(mesh) {
48336
48354
  * @author xeolabs / https://github.com/xeolabs
48337
48355
  */
48338
48356
 
48339
- const tempVec3a$Z = math.vec3();
48357
+ const tempVec3a$_ = math.vec3();
48340
48358
 
48341
48359
  /**
48342
48360
  * @private
@@ -48428,7 +48446,7 @@ PickTriangleRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48428
48446
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48429
48447
  if (active) {
48430
48448
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48431
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48449
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48432
48450
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48433
48451
  }
48434
48452
  }
@@ -48665,7 +48683,7 @@ function buildFragment$1(mesh) {
48665
48683
  * @author xeolabs / https://github.com/xeolabs
48666
48684
  */
48667
48685
 
48668
- const tempVec3a$Y = math.vec3();
48686
+ const tempVec3a$Z = math.vec3();
48669
48687
 
48670
48688
  // No ID, because there is exactly one PickMeshRenderer per scene
48671
48689
 
@@ -48773,7 +48791,7 @@ OcclusionRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48773
48791
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48774
48792
  if (active) {
48775
48793
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48776
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Y) : sectionPlane.pos);
48794
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48777
48795
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48778
48796
  }
48779
48797
  }
@@ -61375,8 +61393,8 @@ class LineSet extends Component {
61375
61393
  }
61376
61394
 
61377
61395
  const tempVec3$4 = math.vec3();
61378
- const tempVec3a$X = math.vec3();
61379
- const tempVec3b$9 = math.vec3();
61396
+ const tempVec3a$Y = math.vec3();
61397
+ const tempVec3b$a = math.vec3();
61380
61398
  const tempVec3c$6 = math.vec3();
61381
61399
 
61382
61400
  /**
@@ -62056,8 +62074,8 @@ class BCFViewpointsPlugin extends Plugin {
62056
62074
  bcfViewpoint.bitmaps.forEach(function (e) {
62057
62075
  const bitmap_type = e.bitmap_type || "jpg"; // "jpg" | "png"
62058
62076
  const bitmap_data = e.bitmap_data; // base64
62059
- let location = xyzObjectToArray(e.location, tempVec3a$X);
62060
- let normal = xyzObjectToArray(e.normal, tempVec3b$9);
62077
+ let location = xyzObjectToArray(e.location, tempVec3a$Y);
62078
+ let normal = xyzObjectToArray(e.normal, tempVec3b$a);
62061
62079
  let up = xyzObjectToArray(e.up, tempVec3c$6);
62062
62080
  let height = e.height || 1;
62063
62081
  if (!bitmap_type) {
@@ -62385,11 +62403,16 @@ class DistanceMeasurement extends Component {
62385
62403
  cfg.onContextMenu(event, this);
62386
62404
  } : null;
62387
62405
 
62406
+ const onMouseWheel = (event) => {
62407
+ this.plugin.viewer.scene.canvas.canvas.dispatchEvent(new WheelEvent('wheel', event));
62408
+ };
62409
+
62388
62410
  this._originDot = new Dot(this._container, {
62389
62411
  fillColor: this._color,
62390
62412
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2 : undefined,
62391
62413
  onMouseOver,
62392
62414
  onMouseLeave,
62415
+ onMouseWheel,
62393
62416
  onContextMenu
62394
62417
  });
62395
62418
 
@@ -62398,6 +62421,7 @@ class DistanceMeasurement extends Component {
62398
62421
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2 : undefined,
62399
62422
  onMouseOver,
62400
62423
  onMouseLeave,
62424
+ onMouseWheel,
62401
62425
  onContextMenu
62402
62426
  });
62403
62427
 
@@ -62408,6 +62432,7 @@ class DistanceMeasurement extends Component {
62408
62432
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1 : undefined,
62409
62433
  onMouseOver,
62410
62434
  onMouseLeave,
62435
+ onMouseWheel,
62411
62436
  onContextMenu
62412
62437
  });
62413
62438
 
@@ -62418,6 +62443,7 @@ class DistanceMeasurement extends Component {
62418
62443
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1 : undefined,
62419
62444
  onMouseOver,
62420
62445
  onMouseLeave,
62446
+ onMouseWheel,
62421
62447
  onContextMenu
62422
62448
  });
62423
62449
 
@@ -62428,6 +62454,7 @@ class DistanceMeasurement extends Component {
62428
62454
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1 : undefined,
62429
62455
  onMouseOver,
62430
62456
  onMouseLeave,
62457
+ onMouseWheel,
62431
62458
  onContextMenu
62432
62459
  });
62433
62460
 
@@ -62438,6 +62465,7 @@ class DistanceMeasurement extends Component {
62438
62465
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1 : undefined,
62439
62466
  onMouseOver,
62440
62467
  onMouseLeave,
62468
+ onMouseWheel,
62441
62469
  onContextMenu
62442
62470
  });
62443
62471
 
@@ -62448,6 +62476,7 @@ class DistanceMeasurement extends Component {
62448
62476
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 4 : undefined,
62449
62477
  onMouseOver,
62450
62478
  onMouseLeave,
62479
+ onMouseWheel,
62451
62480
  onContextMenu
62452
62481
  });
62453
62482
 
@@ -62458,6 +62487,7 @@ class DistanceMeasurement extends Component {
62458
62487
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3 : undefined,
62459
62488
  onMouseOver,
62460
62489
  onMouseLeave,
62490
+ onMouseWheel,
62461
62491
  onContextMenu
62462
62492
  });
62463
62493
 
@@ -62468,6 +62498,7 @@ class DistanceMeasurement extends Component {
62468
62498
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3 : undefined,
62469
62499
  onMouseOver,
62470
62500
  onMouseLeave,
62501
+ onMouseWheel,
62471
62502
  onContextMenu
62472
62503
  });
62473
62504
 
@@ -62478,6 +62509,7 @@ class DistanceMeasurement extends Component {
62478
62509
  zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3 : undefined,
62479
62510
  onMouseOver,
62480
62511
  onMouseLeave,
62512
+ onMouseWheel,
62481
62513
  onContextMenu
62482
62514
  });
62483
62515
 
@@ -63946,7 +63978,7 @@ class SplineCurve extends Curve {
63946
63978
  }
63947
63979
  }
63948
63980
 
63949
- const tempVec3a$W = math.vec3();
63981
+ const tempVec3a$X = math.vec3();
63950
63982
 
63951
63983
  /**
63952
63984
  * @desc Defines a sequence of frames along which a {@link CameraPathAnimation} can animate a {@link Camera}.
@@ -64078,9 +64110,9 @@ class CameraPath extends Component {
64078
64110
  t = t / (this._frames[this._frames.length - 1].t - this._frames[0].t);
64079
64111
  t = t < 0.0 ? 0.0 : (t > 1.0 ? 1.0 : t);
64080
64112
 
64081
- camera.eye = this._eyeCurve.getPoint(t, tempVec3a$W);
64082
- camera.look = this._lookCurve.getPoint(t, tempVec3a$W);
64083
- camera.up = this._upCurve.getPoint(t, tempVec3a$W);
64113
+ camera.eye = this._eyeCurve.getPoint(t, tempVec3a$X);
64114
+ camera.look = this._lookCurve.getPoint(t, tempVec3a$X);
64115
+ camera.up = this._upCurve.getPoint(t, tempVec3a$X);
64084
64116
  }
64085
64117
 
64086
64118
  /**
@@ -65119,7 +65151,7 @@ CameraPathAnimation.PLAYING = 2;
65119
65151
  CameraPathAnimation.PLAYING_TO = 3;
65120
65152
 
65121
65153
  const tempVec3$2 = math.vec3();
65122
- const tempVec3b$8 = math.vec3();
65154
+ const tempVec3b$9 = math.vec3();
65123
65155
  math.vec3();
65124
65156
  const zeroVec$1 = math.vec3([0, -1, 0]);
65125
65157
  const tempQuat = math.vec4([0, 0, 0, 1]);
@@ -65547,7 +65579,7 @@ class ImagePlane extends Component {
65547
65579
  const dist = -math.dotVec3(negDir, tempVec3$2);
65548
65580
 
65549
65581
  math.normalizeVec3(negDir);
65550
- math.mulVec3Scalar(negDir, dist, tempVec3b$8);
65582
+ math.mulVec3Scalar(negDir, dist, tempVec3b$9);
65551
65583
  math.vec3PairToQuaternion(zeroVec$1, dir, tempQuat);
65552
65584
 
65553
65585
  this._node.quaternion = tempQuat;
@@ -66713,8 +66745,8 @@ class SpriteMarker extends Marker {
66713
66745
  }
66714
66746
  }
66715
66747
 
66716
- const tempVec3a$V = math.vec3();
66717
- const tempVec3b$7 = math.vec3();
66748
+ const tempVec3a$W = math.vec3();
66749
+ const tempVec3b$8 = math.vec3();
66718
66750
  const tempMat4a = math.mat4();
66719
66751
 
66720
66752
  /**
@@ -66791,8 +66823,8 @@ function frustumIntersectsAABB3(frustum, aabb) {
66791
66823
 
66792
66824
  let ret = Frustum.INSIDE;
66793
66825
 
66794
- const min = tempVec3a$V;
66795
- const max = tempVec3b$7;
66826
+ const min = tempVec3a$W;
66827
+ const max = tempVec3b$8;
66796
66828
 
66797
66829
  min[0] = aabb[0];
66798
66830
  min[1] = aabb[1];
@@ -69373,7 +69405,7 @@ const RENDER_PASSES = {
69373
69405
  };
69374
69406
 
69375
69407
  const tempVec4$7 = math.vec4();
69376
- const tempVec3a$U = math.vec3();
69408
+ const tempVec3a$V = math.vec3();
69377
69409
 
69378
69410
  /**
69379
69411
  * @private
@@ -69438,7 +69470,7 @@ class TrianglesBatchingColorRenderer {
69438
69470
  if (active) {
69439
69471
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69440
69472
  if (origin) {
69441
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69473
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$V);
69442
69474
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69443
69475
  } else {
69444
69476
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -69866,7 +69898,7 @@ class TrianglesBatchingColorRenderer {
69866
69898
  }
69867
69899
 
69868
69900
  const tempVec4$6 = math.vec4();
69869
- const tempVec3a$T = math.vec3();
69901
+ const tempVec3a$U = math.vec3();
69870
69902
 
69871
69903
  /**
69872
69904
  * @private
@@ -69928,7 +69960,7 @@ class TrianglesBatchingFlatColorRenderer {
69928
69960
  if (active) {
69929
69961
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69930
69962
  if (origin) {
69931
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
69963
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69932
69964
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69933
69965
  } else {
69934
69966
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70345,7 +70377,7 @@ class TrianglesBatchingFlatColorRenderer {
70345
70377
  }
70346
70378
 
70347
70379
  const defaultColor$4 = new Float32Array([1, 1, 1]);
70348
- const tempVec3a$S = math.vec3();
70380
+ const tempVec3a$T = math.vec3();
70349
70381
 
70350
70382
  /**
70351
70383
  * @private
@@ -70429,7 +70461,7 @@ class TrianglesBatchingSilhouetteRenderer {
70429
70461
  if (active) {
70430
70462
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70431
70463
  if (origin) {
70432
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70464
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
70433
70465
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70434
70466
  } else {
70435
70467
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70666,7 +70698,7 @@ class TrianglesBatchingSilhouetteRenderer {
70666
70698
  }
70667
70699
  }
70668
70700
 
70669
- const tempVec3a$R = math.vec3();
70701
+ const tempVec3a$S = math.vec3();
70670
70702
  const defaultColor$3 = new Float32Array([0,0,0,1]);
70671
70703
 
70672
70704
  /**
@@ -70749,7 +70781,7 @@ class TrianglesBatchingEdgesRenderer {
70749
70781
  if (active) {
70750
70782
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70751
70783
  if (origin) {
70752
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
70784
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70753
70785
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70754
70786
  } else {
70755
70787
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70977,7 +71009,7 @@ class TrianglesBatchingEdgesRenderer {
70977
71009
  }
70978
71010
  }
70979
71011
 
70980
- const tempVec3a$Q = math.vec3();
71012
+ const tempVec3a$R = math.vec3();
70981
71013
 
70982
71014
  /**
70983
71015
  * @private
@@ -71037,7 +71069,7 @@ class TrianglesBatchingEdgesColorRenderer {
71037
71069
  if (active) {
71038
71070
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71039
71071
  if (origin) {
71040
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71072
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
71041
71073
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71042
71074
  } else {
71043
71075
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71265,7 +71297,7 @@ class TrianglesBatchingEdgesColorRenderer {
71265
71297
  }
71266
71298
  }
71267
71299
 
71268
- const tempVec3a$P = math.vec3();
71300
+ const tempVec3a$Q = math.vec3();
71269
71301
 
71270
71302
  /**
71271
71303
  * @private
@@ -71331,7 +71363,7 @@ class TrianglesBatchingPickMeshRenderer {
71331
71363
  if (active) {
71332
71364
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71333
71365
  if (origin) {
71334
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71366
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71335
71367
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71336
71368
  } else {
71337
71369
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71561,7 +71593,7 @@ class TrianglesBatchingPickMeshRenderer {
71561
71593
  }
71562
71594
  }
71563
71595
 
71564
- const tempVec3a$O = math.vec3();
71596
+ const tempVec3a$P = math.vec3();
71565
71597
 
71566
71598
  /**
71567
71599
  * @private
@@ -71632,7 +71664,7 @@ class TrianglesBatchingPickDepthRenderer {
71632
71664
  if (active) {
71633
71665
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71634
71666
  if (origin) {
71635
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71667
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71636
71668
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71637
71669
  } else {
71638
71670
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71870,7 +71902,7 @@ class TrianglesBatchingPickDepthRenderer {
71870
71902
  }
71871
71903
  }
71872
71904
 
71873
- const tempVec3a$N = math.vec3();
71905
+ const tempVec3a$O = math.vec3();
71874
71906
 
71875
71907
  /**
71876
71908
  * @private
@@ -71938,7 +71970,7 @@ class TrianglesBatchingPickNormalsRenderer {
71938
71970
  if (active) {
71939
71971
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71940
71972
  if (origin) {
71941
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
71973
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71942
71974
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71943
71975
  } else {
71944
71976
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72163,7 +72195,7 @@ class TrianglesBatchingPickNormalsRenderer {
72163
72195
  }
72164
72196
  }
72165
72197
 
72166
- const tempVec3a$M = math.vec3();
72198
+ const tempVec3a$N = math.vec3();
72167
72199
 
72168
72200
  /**
72169
72201
  * @private
@@ -72223,7 +72255,7 @@ class TrianglesBatchingOcclusionRenderer {
72223
72255
  if (active) {
72224
72256
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72225
72257
  if (origin) {
72226
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72258
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
72227
72259
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72228
72260
  } else {
72229
72261
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72446,7 +72478,7 @@ class TrianglesBatchingOcclusionRenderer {
72446
72478
  }
72447
72479
  }
72448
72480
 
72449
- const tempVec3a$L = math.vec3();
72481
+ const tempVec3a$M = math.vec3();
72450
72482
 
72451
72483
  /**
72452
72484
  * @private
@@ -72506,7 +72538,7 @@ class TrianglesBatchingDepthRenderer {
72506
72538
  if (active) {
72507
72539
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72508
72540
  if (origin) {
72509
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72541
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72510
72542
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72511
72543
  } else {
72512
72544
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72730,7 +72762,7 @@ class TrianglesBatchingDepthRenderer {
72730
72762
  }
72731
72763
  }
72732
72764
 
72733
- const tempVec3a$K = math.vec3();
72765
+ const tempVec3a$L = math.vec3();
72734
72766
 
72735
72767
  /**
72736
72768
  * @private
@@ -72793,7 +72825,7 @@ class TrianglesBatchingNormalsRenderer {
72793
72825
  if (active) {
72794
72826
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72795
72827
  if (origin) {
72796
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
72828
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72797
72829
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72798
72830
  } else {
72799
72831
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73033,7 +73065,7 @@ class TrianglesBatchingNormalsRenderer {
73033
73065
  }
73034
73066
  }
73035
73067
 
73036
- const tempVec3a$J = math.vec3();
73068
+ const tempVec3a$K = math.vec3();
73037
73069
 
73038
73070
  /**
73039
73071
  * Renders BatchingLayer fragment depths to a shadow map.
@@ -73102,7 +73134,7 @@ class TrianglesBatchingShadowRenderer {
73102
73134
  if (active) {
73103
73135
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73104
73136
  if (origin) {
73105
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73137
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
73106
73138
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73107
73139
  } else {
73108
73140
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73274,7 +73306,7 @@ class TrianglesBatchingShadowRenderer {
73274
73306
  }
73275
73307
 
73276
73308
  const tempVec4$5 = math.vec4();
73277
- const tempVec3a$I = math.vec3();
73309
+ const tempVec3a$J = math.vec3();
73278
73310
 
73279
73311
  // const TEXTURE_DECODE_FUNCS = {};
73280
73312
  // TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -73347,7 +73379,7 @@ class TrianglesBatchingPBRRenderer {
73347
73379
  if (active) {
73348
73380
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73349
73381
  if (origin) {
73350
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
73382
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73351
73383
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73352
73384
  } else {
73353
73385
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74152,7 +74184,7 @@ class TrianglesBatchingPBRRenderer {
74152
74184
  }
74153
74185
  }
74154
74186
 
74155
- const tempVec3a$H = math.vec3();
74187
+ const tempVec3a$I = math.vec3();
74156
74188
 
74157
74189
  /**
74158
74190
  * @private
@@ -74219,7 +74251,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74219
74251
  if (active) {
74220
74252
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74221
74253
  if (origin) {
74222
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74254
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
74223
74255
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74224
74256
  } else {
74225
74257
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74429,7 +74461,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74429
74461
  }
74430
74462
 
74431
74463
  const tempVec4$4 = math.vec4();
74432
- const tempVec3a$G = math.vec3();
74464
+ const tempVec3a$H = math.vec3();
74433
74465
 
74434
74466
  /**
74435
74467
  * @private
@@ -74494,7 +74526,7 @@ class TrianglesBatchingColorTextureRenderer {
74494
74526
  if (active) {
74495
74527
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74496
74528
  if (origin) {
74497
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$G);
74529
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74498
74530
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74499
74531
  } else {
74500
74532
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -75500,8 +75532,8 @@ const tempVec4b$a = math.vec4([0, 0, 0, 1]);
75500
75532
  const tempVec4c$7 = math.vec4([0, 0, 0, 1]);
75501
75533
  const tempOBB3$2 = math.OBB3();
75502
75534
 
75503
- const tempVec3a$F = math.vec3();
75504
- const tempVec3b$6 = math.vec3();
75535
+ const tempVec3a$G = math.vec3();
75536
+ const tempVec3b$7 = math.vec3();
75505
75537
  const tempVec3c$5 = math.vec3();
75506
75538
  const tempVec3d$2 = math.vec3();
75507
75539
  const tempVec3e$1 = math.vec3();
@@ -76680,8 +76712,8 @@ class TrianglesBatchingLayer {
76680
76712
  const origin = state.origin;
76681
76713
  const offset = portion.offset;
76682
76714
 
76683
- const rtcRayOrigin = tempVec3a$F;
76684
- const rtcRayDir = tempVec3b$6;
76715
+ const rtcRayOrigin = tempVec3a$G;
76716
+ const rtcRayDir = tempVec3b$7;
76685
76717
 
76686
76718
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$5) : worldRayOrigin); // World -> RTC
76687
76719
  rtcRayDir.set(worldRayDir);
@@ -76804,7 +76836,7 @@ class TrianglesBatchingLayer {
76804
76836
  }
76805
76837
 
76806
76838
  const tempVec4$3 = math.vec4();
76807
- const tempVec3a$E = math.vec3();
76839
+ const tempVec3a$F = math.vec3();
76808
76840
 
76809
76841
  /**
76810
76842
  * @private
@@ -76870,7 +76902,7 @@ class TrianglesInstancingColorRenderer {
76870
76902
  if (active) {
76871
76903
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
76872
76904
  if (origin) {
76873
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
76905
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$F);
76874
76906
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
76875
76907
  } else {
76876
76908
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77347,7 +77379,7 @@ class TrianglesInstancingColorRenderer {
77347
77379
  }
77348
77380
 
77349
77381
  const tempVec4$2 = math.vec4();
77350
- const tempVec3a$D = math.vec3();
77382
+ const tempVec3a$E = math.vec3();
77351
77383
 
77352
77384
  /**
77353
77385
  * @private
@@ -77409,7 +77441,7 @@ class TrianglesInstancingFlatColorRenderer {
77409
77441
  if (active) {
77410
77442
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77411
77443
  if (origin) {
77412
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77444
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
77413
77445
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77414
77446
  } else {
77415
77447
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77856,7 +77888,7 @@ class TrianglesInstancingFlatColorRenderer {
77856
77888
  }
77857
77889
  }
77858
77890
 
77859
- const tempVec3a$C = math.vec3();
77891
+ const tempVec3a$D = math.vec3();
77860
77892
 
77861
77893
  /**
77862
77894
  * @private
@@ -77939,7 +77971,7 @@ class TrianglesInstancingSilhouetteRenderer {
77939
77971
  if (active) {
77940
77972
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77941
77973
  if (origin) {
77942
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
77974
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77943
77975
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77944
77976
  } else {
77945
77977
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78211,7 +78243,7 @@ class TrianglesInstancingSilhouetteRenderer {
78211
78243
  }
78212
78244
  }
78213
78245
 
78214
- const tempVec3a$B = math.vec3();
78246
+ const tempVec3a$C = math.vec3();
78215
78247
  const defaultColor$2 = new Float32Array([0,0,0,1]);
78216
78248
 
78217
78249
  /**
@@ -78295,7 +78327,7 @@ class TrianglesInstancingEdgesRenderer {
78295
78327
  if (active) {
78296
78328
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78297
78329
  if (origin) {
78298
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78330
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
78299
78331
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78300
78332
  } else {
78301
78333
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78556,7 +78588,7 @@ class TrianglesInstancingEdgesRenderer {
78556
78588
  }
78557
78589
  }
78558
78590
 
78559
- const tempVec3a$A = math.vec3();
78591
+ const tempVec3a$B = math.vec3();
78560
78592
 
78561
78593
  /**
78562
78594
  * @private
@@ -78617,7 +78649,7 @@ class TrianglesInstancingEdgesColorRenderer {
78617
78649
  if (active) {
78618
78650
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78619
78651
  if (origin) {
78620
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78652
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78621
78653
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78622
78654
  } else {
78623
78655
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78883,7 +78915,7 @@ class TrianglesInstancingEdgesColorRenderer {
78883
78915
  }
78884
78916
  }
78885
78917
 
78886
- const tempVec3a$z = math.vec3();
78918
+ const tempVec3a$A = math.vec3();
78887
78919
 
78888
78920
  /**
78889
78921
  * @private
@@ -78986,7 +79018,7 @@ class TrianglesInstancingPickMeshRenderer {
78986
79018
  if (active) {
78987
79019
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78988
79020
  if (origin) {
78989
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
79021
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78990
79022
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78991
79023
  } else {
78992
79024
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79221,7 +79253,7 @@ class TrianglesInstancingPickMeshRenderer {
79221
79253
  }
79222
79254
  }
79223
79255
 
79224
- const tempVec3a$y = math.vec3();
79256
+ const tempVec3a$z = math.vec3();
79225
79257
 
79226
79258
  /**
79227
79259
  * @private
@@ -79298,7 +79330,7 @@ class TrianglesInstancingPickDepthRenderer {
79298
79330
  if (active) {
79299
79331
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79300
79332
  if (origin) {
79301
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79333
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
79302
79334
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79303
79335
  } else {
79304
79336
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79566,7 +79598,7 @@ class TrianglesInstancingPickDepthRenderer {
79566
79598
  }
79567
79599
  }
79568
79600
 
79569
- const tempVec3a$x = math.vec3();
79601
+ const tempVec3a$y = math.vec3();
79570
79602
 
79571
79603
  /**
79572
79604
  * @private
@@ -79643,7 +79675,7 @@ class TrianglesInstancingPickNormalsRenderer {
79643
79675
  if (active) {
79644
79676
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79645
79677
  if (origin) {
79646
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79678
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79647
79679
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79648
79680
  } else {
79649
79681
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79920,7 +79952,7 @@ class TrianglesInstancingPickNormalsRenderer {
79920
79952
  }
79921
79953
  }
79922
79954
 
79923
- const tempVec3a$w = math.vec3();
79955
+ const tempVec3a$x = math.vec3();
79924
79956
 
79925
79957
  /**
79926
79958
  * @private
@@ -79981,7 +80013,7 @@ class TrianglesInstancingOcclusionRenderer {
79981
80013
  if (active) {
79982
80014
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79983
80015
  if (origin) {
79984
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
80016
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79985
80017
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79986
80018
  } else {
79987
80019
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80239,7 +80271,7 @@ class TrianglesInstancingOcclusionRenderer {
80239
80271
  }
80240
80272
  }
80241
80273
 
80242
- const tempVec3a$v = math.vec3();
80274
+ const tempVec3a$w = math.vec3();
80243
80275
 
80244
80276
  /**
80245
80277
  * @private
@@ -80300,7 +80332,7 @@ class TrianglesInstancingDepthRenderer {
80300
80332
  if (active) {
80301
80333
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80302
80334
  if (origin) {
80303
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80335
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
80304
80336
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80305
80337
  } else {
80306
80338
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80550,7 +80582,7 @@ class TrianglesInstancingDepthRenderer {
80550
80582
  }
80551
80583
  }
80552
80584
 
80553
- const tempVec3a$u = math.vec3();
80585
+ const tempVec3a$v = math.vec3();
80554
80586
 
80555
80587
  /**
80556
80588
  * @private
@@ -80614,7 +80646,7 @@ class TrianglesInstancingNormalsRenderer {
80614
80646
  if (active) {
80615
80647
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80616
80648
  if (origin) {
80617
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80649
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80618
80650
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80619
80651
  } else {
80620
80652
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80894,7 +80926,7 @@ class TrianglesInstancingNormalsRenderer {
80894
80926
  }
80895
80927
  }
80896
80928
 
80897
- const tempVec3a$t = math.vec3();
80929
+ const tempVec3a$u = math.vec3();
80898
80930
 
80899
80931
  /**
80900
80932
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -80981,7 +81013,7 @@ class TrianglesInstancingShadowRenderer {
80981
81013
  if (active) {
80982
81014
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80983
81015
  if (origin) {
80984
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
81016
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80985
81017
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80986
81018
  } else {
80987
81019
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -81174,7 +81206,7 @@ class TrianglesInstancingShadowRenderer {
81174
81206
  }
81175
81207
 
81176
81208
  const tempVec4$1 = math.vec4();
81177
- const tempVec3a$s = math.vec3();
81209
+ const tempVec3a$t = math.vec3();
81178
81210
 
81179
81211
  const TEXTURE_DECODE_FUNCS = {};
81180
81212
  TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -81248,7 +81280,7 @@ class TrianglesInstancingPBRRenderer {
81248
81280
  if (active) {
81249
81281
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
81250
81282
  if (origin) {
81251
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
81283
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
81252
81284
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
81253
81285
  } else {
81254
81286
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82084,7 +82116,7 @@ class TrianglesInstancingPBRRenderer {
82084
82116
  }
82085
82117
  }
82086
82118
 
82087
- const tempVec3a$r = math.vec3();
82119
+ const tempVec3a$s = math.vec3();
82088
82120
 
82089
82121
  /**
82090
82122
  * @private
@@ -82159,7 +82191,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82159
82191
  if (active) {
82160
82192
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82161
82193
  if (origin) {
82162
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82194
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
82163
82195
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82164
82196
  } else {
82165
82197
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82399,7 +82431,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82399
82431
  }
82400
82432
 
82401
82433
  const tempVec4 = math.vec4();
82402
- const tempVec3a$q = math.vec3();
82434
+ const tempVec3a$r = math.vec3();
82403
82435
 
82404
82436
  /**
82405
82437
  * @private
@@ -82464,7 +82496,7 @@ class TrianglesInstancingColorTextureRenderer {
82464
82496
  if (active) {
82465
82497
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82466
82498
  if (origin) {
82467
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$q);
82499
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82468
82500
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82469
82501
  } else {
82470
82502
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -83275,8 +83307,8 @@ const tempVec4b$9 = math.vec4([0, 0, 0, 1]);
83275
83307
  const tempVec4c$6 = math.vec4([0, 0, 0, 1]);
83276
83308
  const tempVec3fa$2 = new Float32Array(3);
83277
83309
 
83278
- const tempVec3a$p = math.vec3();
83279
- const tempVec3b$5 = math.vec3();
83310
+ const tempVec3a$q = math.vec3();
83311
+ const tempVec3b$6 = math.vec3();
83280
83312
  const tempVec3c$4 = math.vec3();
83281
83313
  const tempVec3d$1 = math.vec3();
83282
83314
  const tempVec3e = math.vec3();
@@ -84204,8 +84236,8 @@ class TrianglesInstancingLayer {
84204
84236
  const origin = state.origin;
84205
84237
  const offset = portion.offset;
84206
84238
 
84207
- const rtcRayOrigin = tempVec3a$p;
84208
- const rtcRayDir = tempVec3b$5;
84239
+ const rtcRayOrigin = tempVec3a$q;
84240
+ const rtcRayDir = tempVec3b$6;
84209
84241
 
84210
84242
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$4) : worldRayOrigin); // World -> RTC
84211
84243
  rtcRayDir.set(worldRayDir);
@@ -84338,7 +84370,7 @@ class TrianglesInstancingLayer {
84338
84370
  }
84339
84371
  }
84340
84372
 
84341
- const tempVec3a$o = math.vec3();
84373
+ const tempVec3a$p = math.vec3();
84342
84374
 
84343
84375
  /**
84344
84376
  * @private
@@ -84401,7 +84433,7 @@ class LinesBatchingColorRenderer {
84401
84433
  if (active) {
84402
84434
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84403
84435
  if (origin) {
84404
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84436
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$p);
84405
84437
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84406
84438
  } else {
84407
84439
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -84621,7 +84653,7 @@ class LinesBatchingColorRenderer {
84621
84653
  }
84622
84654
 
84623
84655
  const defaultColor$1 = new Float32Array([1, 1, 1]);
84624
- const tempVec3a$n = math.vec3();
84656
+ const tempVec3a$o = math.vec3();
84625
84657
 
84626
84658
  /**
84627
84659
  * @private
@@ -84708,7 +84740,7 @@ class LinesBatchingSilhouetteRenderer {
84708
84740
  if (active) {
84709
84741
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84710
84742
  if (origin) {
84711
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
84743
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84712
84744
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84713
84745
  } else {
84714
84746
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -85805,7 +85837,7 @@ class LinesBatchingLayer {
85805
85837
  }
85806
85838
  }
85807
85839
 
85808
- const tempVec3a$m = math.vec3();
85840
+ const tempVec3a$n = math.vec3();
85809
85841
 
85810
85842
  /**
85811
85843
  * @private
@@ -85868,7 +85900,7 @@ class LinesInstancingColorRenderer {
85868
85900
  if (active) {
85869
85901
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
85870
85902
  if (origin) {
85871
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
85903
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
85872
85904
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
85873
85905
  } else {
85874
85906
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -86150,7 +86182,7 @@ class LinesInstancingColorRenderer {
86150
86182
  }
86151
86183
  }
86152
86184
 
86153
- const tempVec3a$l = math.vec3();
86185
+ const tempVec3a$m = math.vec3();
86154
86186
 
86155
86187
  /**
86156
86188
  * @private
@@ -86235,7 +86267,7 @@ class LinesInstancingSilhouetteRenderer {
86235
86267
  if (active) {
86236
86268
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
86237
86269
  if (origin) {
86238
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
86270
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
86239
86271
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
86240
86272
  } else {
86241
86273
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87217,7 +87249,7 @@ class LinesInstancingLayer {
87217
87249
  }
87218
87250
  }
87219
87251
 
87220
- const tempVec3a$k = math.vec3();
87252
+ const tempVec3a$l = math.vec3();
87221
87253
 
87222
87254
  /**
87223
87255
  * @private
@@ -87278,7 +87310,7 @@ class PointsBatchingColorRenderer {
87278
87310
  if (active) {
87279
87311
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87280
87312
  if (origin) {
87281
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87313
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
87282
87314
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87283
87315
  } else {
87284
87316
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87563,7 +87595,7 @@ class PointsBatchingColorRenderer {
87563
87595
  }
87564
87596
 
87565
87597
  const defaultColor = new Float32Array([1, 1, 1]);
87566
- const tempVec3a$j = math.vec3();
87598
+ const tempVec3a$k = math.vec3();
87567
87599
 
87568
87600
  /**
87569
87601
  * @private
@@ -87648,7 +87680,7 @@ class PointsBatchingSilhouetteRenderer {
87648
87680
  if (active) {
87649
87681
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87650
87682
  if (origin) {
87651
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87683
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87652
87684
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87653
87685
  } else {
87654
87686
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87892,7 +87924,7 @@ class PointsBatchingSilhouetteRenderer {
87892
87924
  }
87893
87925
  }
87894
87926
 
87895
- const tempVec3a$i = math.vec3();
87927
+ const tempVec3a$j = math.vec3();
87896
87928
 
87897
87929
  /**
87898
87930
  * @private
@@ -87959,7 +87991,7 @@ class PointsBatchingPickMeshRenderer {
87959
87991
  if (active) {
87960
87992
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87961
87993
  if (origin) {
87962
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
87994
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87963
87995
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87964
87996
  } else {
87965
87997
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88204,7 +88236,7 @@ class PointsBatchingPickMeshRenderer {
88204
88236
  }
88205
88237
  }
88206
88238
 
88207
- const tempVec3a$h = math.vec3();
88239
+ const tempVec3a$i = math.vec3();
88208
88240
 
88209
88241
  /**
88210
88242
  * @private
@@ -88276,7 +88308,7 @@ class PointsBatchingPickDepthRenderer {
88276
88308
  if (active) {
88277
88309
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88278
88310
  if (origin) {
88279
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88311
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
88280
88312
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88281
88313
  } else {
88282
88314
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88527,7 +88559,7 @@ class PointsBatchingPickDepthRenderer {
88527
88559
  }
88528
88560
  }
88529
88561
 
88530
- const tempVec3a$g = math.vec3();
88562
+ const tempVec3a$h = math.vec3();
88531
88563
 
88532
88564
  /**
88533
88565
  * @private
@@ -88588,7 +88620,7 @@ class PointsBatchingOcclusionRenderer {
88588
88620
  if (active) {
88589
88621
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88590
88622
  if (origin) {
88591
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$g);
88623
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88592
88624
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88593
88625
  } else {
88594
88626
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88954,8 +88986,8 @@ class PointsBatchingBuffer {
88954
88986
  }
88955
88987
  }
88956
88988
 
88957
- const tempVec3a$f = math.vec4();
88958
- const tempVec3b$4 = math.vec4();
88989
+ const tempVec3a$g = math.vec4();
88990
+ const tempVec3b$5 = math.vec4();
88959
88991
  const tempVec4a$6 = math.vec4([0, 0, 0, 1]);
88960
88992
  const tempVec4b$6 = math.vec4([0, 0, 0, 1]);
88961
88993
  const tempVec4c$3 = math.vec4([0, 0, 0, 1]);
@@ -89107,8 +89139,8 @@ class PointsBatchingLayer {
89107
89139
 
89108
89140
  const bounds = geometryCompressionUtils.getPositionsBounds(positionsCompressed);
89109
89141
 
89110
- const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$f);
89111
- const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$4);
89142
+ const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$g);
89143
+ const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$5);
89112
89144
 
89113
89145
  worldAABB[0] = min[0];
89114
89146
  worldAABB[1] = min[1];
@@ -89746,7 +89778,7 @@ class PointsBatchingLayer {
89746
89778
  }
89747
89779
  }
89748
89780
 
89749
- const tempVec3a$e = math.vec3();
89781
+ const tempVec3a$f = math.vec3();
89750
89782
 
89751
89783
  /**
89752
89784
  * @private
@@ -89815,7 +89847,7 @@ class PointsInstancingColorRenderer {
89815
89847
  if (active) {
89816
89848
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
89817
89849
  if (origin) {
89818
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
89850
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$f);
89819
89851
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
89820
89852
  } else {
89821
89853
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90125,7 +90157,7 @@ class PointsInstancingColorRenderer {
90125
90157
  }
90126
90158
  }
90127
90159
 
90128
- const tempVec3a$d = math.vec3();
90160
+ const tempVec3a$e = math.vec3();
90129
90161
 
90130
90162
  /**
90131
90163
  * @private
@@ -90209,7 +90241,7 @@ class PointsInstancingSilhouetteRenderer {
90209
90241
  if (active) {
90210
90242
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90211
90243
  if (origin) {
90212
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90244
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
90213
90245
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90214
90246
  } else {
90215
90247
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90490,7 +90522,7 @@ class PointsInstancingSilhouetteRenderer {
90490
90522
  }
90491
90523
  }
90492
90524
 
90493
- const tempVec3a$c = math.vec3();
90525
+ const tempVec3a$d = math.vec3();
90494
90526
 
90495
90527
  /**
90496
90528
  * @private
@@ -90596,7 +90628,7 @@ class PointsInstancingPickMeshRenderer {
90596
90628
  if (active) {
90597
90629
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90598
90630
  if (origin) {
90599
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90631
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90600
90632
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90601
90633
  } else {
90602
90634
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90847,7 +90879,7 @@ class PointsInstancingPickMeshRenderer {
90847
90879
  }
90848
90880
  }
90849
90881
 
90850
- const tempVec3a$b = math.vec3();
90882
+ const tempVec3a$c = math.vec3();
90851
90883
 
90852
90884
  /**
90853
90885
  * @private
@@ -90925,7 +90957,7 @@ class PointsInstancingPickDepthRenderer {
90925
90957
  if (active) {
90926
90958
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90927
90959
  if (origin) {
90928
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
90960
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90929
90961
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90930
90962
  } else {
90931
90963
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91213,7 +91245,7 @@ class PointsInstancingPickDepthRenderer {
91213
91245
  }
91214
91246
  }
91215
91247
 
91216
- const tempVec3a$a = math.vec3();
91248
+ const tempVec3a$b = math.vec3();
91217
91249
 
91218
91250
  /**
91219
91251
  * @private
@@ -91275,7 +91307,7 @@ class PointsInstancingOcclusionRenderer {
91275
91307
  if (active) {
91276
91308
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91277
91309
  if (origin) {
91278
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91310
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
91279
91311
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91280
91312
  } else {
91281
91313
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91564,7 +91596,7 @@ class PointsInstancingOcclusionRenderer {
91564
91596
  }
91565
91597
  }
91566
91598
 
91567
- const tempVec3a$9 = math.vec3();
91599
+ const tempVec3a$a = math.vec3();
91568
91600
 
91569
91601
  /**
91570
91602
  * @private
@@ -91626,7 +91658,7 @@ class PointsInstancingDepthRenderer {
91626
91658
  if (active) {
91627
91659
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91628
91660
  if (origin) {
91629
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
91661
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91630
91662
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91631
91663
  } else {
91632
91664
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91910,7 +91942,7 @@ class PointsInstancingDepthRenderer {
91910
91942
  }
91911
91943
  }
91912
91944
 
91913
- const tempVec3a$8 = math.vec3();
91945
+ const tempVec3a$9 = math.vec3();
91914
91946
 
91915
91947
  /**
91916
91948
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -91997,7 +92029,7 @@ class PointsInstancingShadowRenderer {
91997
92029
  if (active) {
91998
92030
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91999
92031
  if (origin) {
92000
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$8);
92032
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
92001
92033
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
92002
92034
  } else {
92003
92035
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -94338,7 +94370,7 @@ function getKTX2TextureTranscoder(viewer) {
94338
94370
  return transcoder;
94339
94371
  }
94340
94372
 
94341
- const tempVec3a$7 = math.vec3();
94373
+ const tempVec3a$8 = math.vec3();
94342
94374
  const tempMat4$1 = math.mat4();
94343
94375
 
94344
94376
  const defaultScale = math.vec3([1, 1, 1]);
@@ -96719,7 +96751,7 @@ class VBOSceneModel extends Component {
96719
96751
  }
96720
96752
 
96721
96753
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
96722
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$7) : this._origin;
96754
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$8) : this._origin;
96723
96755
 
96724
96756
  const instancingLayer = this._getInstancingLayer(origin, textureSetId, geometryId);
96725
96757
 
@@ -96781,7 +96813,7 @@ class VBOSceneModel extends Component {
96781
96813
 
96782
96814
  let indices = cfg.indices;
96783
96815
  let edgeIndices = cfg.edgeIndices;
96784
- let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$7) : this._origin;
96816
+ let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$8) : this._origin;
96785
96817
  let positions = cfg.positions;
96786
96818
 
96787
96819
  if (positions) {
@@ -97795,8 +97827,8 @@ class TextureTranscoder {
97795
97827
  const screenPos = math.vec4();
97796
97828
  const viewPos = math.vec4();
97797
97829
 
97798
- const tempVec3a$6 = math.vec3();
97799
- const tempVec3b$3 = math.vec3();
97830
+ const tempVec3a$7 = math.vec3();
97831
+ const tempVec3b$4 = math.vec3();
97800
97832
  const tempVec3c$3 = math.vec3();
97801
97833
 
97802
97834
  const tempVec4a$4 = math.vec4();
@@ -97830,7 +97862,7 @@ class PanController {
97830
97862
  const camera = this._scene.camera;
97831
97863
 
97832
97864
  if (optionalTargetWorldPos) {
97833
- const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97865
+ const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97834
97866
  const eyeWorldPosDist = math.lenVec3(eyeToWorldPosVec);
97835
97867
  dolliedThroughSurface = (eyeWorldPosDist < dollyDelta);
97836
97868
  }
@@ -97854,9 +97886,9 @@ class PanController {
97854
97886
  // suddenly a lot closer than the point we pivoted about on the surface of the last object
97855
97887
  // that we click-drag-pivoted on.
97856
97888
 
97857
- const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97889
+ const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97858
97890
  const lenEyeTargetVec = math.lenVec3(eyeTargetVec);
97859
- const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$3)), lenEyeTargetVec);
97891
+ const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$4)), lenEyeTargetVec);
97860
97892
  camera.look = [camera.eye[0] + eyeLookVec[0], camera.eye[1] + eyeLookVec[1], camera.eye[2] + eyeLookVec[2]];
97861
97893
  }
97862
97894
 
@@ -97873,7 +97905,7 @@ class PanController {
97873
97905
 
97874
97906
  const worldPos2 = this._unproject(targetCanvasPos, tempVec4b$4);
97875
97907
  const offset = math.subVec3(worldPos2, worldPos1, tempVec4c$1);
97876
- const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6)), -dollyDelta, tempVec3b$3);
97908
+ const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$7)), -dollyDelta, tempVec3b$4);
97877
97909
  const moveVec = math.addVec3(offset, eyeLookMoveVec, tempVec3c$3);
97878
97910
 
97879
97911
  camera.eye = [camera.eye[0] - moveVec[0], camera.eye[1] - moveVec[1], camera.eye[2] - moveVec[2]];
@@ -97901,8 +97933,8 @@ class PanController {
97901
97933
  }
97902
97934
  }
97903
97935
 
97904
- const tempVec3a$5 = math.vec3();
97905
- const tempVec3b$2 = math.vec3();
97936
+ const tempVec3a$6 = math.vec3();
97937
+ const tempVec3b$3 = math.vec3();
97906
97938
  const tempVec3c$2 = math.vec3();
97907
97939
 
97908
97940
  const tempVec4a$3 = math.vec4();
@@ -98034,8 +98066,8 @@ class PivotController {
98034
98066
 
98035
98067
  _cameraLookingDownwards() { // Returns true if angle between camera viewing direction and World-space "up" axis is too small
98036
98068
  const camera = this._scene.camera;
98037
- const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$5));
98038
- const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$2);
98069
+ const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6));
98070
+ const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$3);
98039
98071
  let rightAxisLen = math.sqLenVec3(rightAxis);
98040
98072
  return (rightAxisLen <= 0.0001);
98041
98073
  }
@@ -98075,8 +98107,8 @@ class PivotController {
98075
98107
  const screenZ = math.dotVec4(D, Pt3) / math.dotVec4(D, Pt4);
98076
98108
  const worldPos = tempVec4a$3;
98077
98109
  camera.project.unproject(canvasPos, screenZ, tempVec4b$3, tempVec4c, worldPos);
98078
- const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$5));
98079
- const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$2), tempVec3c$2);
98110
+ const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$6));
98111
+ const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$3), tempVec3c$2);
98080
98112
  this.setPivotPos(posOnSphere);
98081
98113
  }
98082
98114
 
@@ -98707,8 +98739,8 @@ class MousePanRotateDollyHandler {
98707
98739
  }
98708
98740
 
98709
98741
  const center = math.vec3();
98710
- const tempVec3a$4 = math.vec3();
98711
- const tempVec3b$1 = math.vec3();
98742
+ const tempVec3a$5 = math.vec3();
98743
+ const tempVec3b$2 = math.vec3();
98712
98744
  const tempVec3c$1 = math.vec3();
98713
98745
  const tempVec3d = math.vec3();
98714
98746
 
@@ -98762,39 +98794,39 @@ class KeyboardAxisViewHandler {
98762
98794
 
98763
98795
  if (axisViewRight) {
98764
98796
 
98765
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$4), tempVec3d));
98797
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$5), tempVec3d));
98766
98798
  tempCameraTarget.look.set(center);
98767
98799
  tempCameraTarget.up.set(camera.worldUp);
98768
98800
 
98769
98801
  } else if (axisViewBack) {
98770
98802
 
98771
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$4), tempVec3d));
98803
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$5), tempVec3d));
98772
98804
  tempCameraTarget.look.set(center);
98773
98805
  tempCameraTarget.up.set(camera.worldUp);
98774
98806
 
98775
98807
  } else if (axisViewLeft) {
98776
98808
 
98777
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$4), tempVec3d));
98809
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$5), tempVec3d));
98778
98810
  tempCameraTarget.look.set(center);
98779
98811
  tempCameraTarget.up.set(camera.worldUp);
98780
98812
 
98781
98813
  } else if (axisViewFront) {
98782
98814
 
98783
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$4), tempVec3d));
98815
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$5), tempVec3d));
98784
98816
  tempCameraTarget.look.set(center);
98785
98817
  tempCameraTarget.up.set(camera.worldUp);
98786
98818
 
98787
98819
  } else if (axisViewTop) {
98788
98820
 
98789
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$4), tempVec3d));
98821
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$5), tempVec3d));
98790
98822
  tempCameraTarget.look.set(center);
98791
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$1), tempVec3c$1));
98823
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$2), tempVec3c$1));
98792
98824
 
98793
98825
  } else if (axisViewBottom) {
98794
98826
 
98795
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$4), tempVec3d));
98827
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$5), tempVec3d));
98796
98828
  tempCameraTarget.look.set(center);
98797
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$1)));
98829
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$2)));
98798
98830
  }
98799
98831
 
98800
98832
  if ((!configs.firstPerson) && configs.followPointer) {
@@ -113310,6 +113342,10 @@ function CubeTextureCanvas(viewer, cfg = {}) {
113310
113342
  };
113311
113343
  }
113312
113344
 
113345
+ const tempVec3a$4 = math.vec3();
113346
+ const tempVec3b$1 = math.vec3();
113347
+ math.mat4();
113348
+
113313
113349
  /**
113314
113350
  * {@link Viewer} plugin that lets us look at the entire {@link Scene} from along a chosen axis or diagonal.
113315
113351
  *
@@ -113447,11 +113483,10 @@ class NavCubePlugin extends Plugin {
113447
113483
 
113448
113484
  const rotateTrueNorth = (function () {
113449
113485
  const trueNorthMatrix = math.mat4();
113450
- const resultVec = math.vec3();
113451
- return function (dir, vec) {
113486
+ return function (dir, vec, dest) {
113452
113487
  math.identityMat4(trueNorthMatrix);
113453
113488
  math.rotationMat4v(dir * self._projectNorthOffsetAngle * math.DEGTORAD, [0, 1, 0], trueNorthMatrix);
113454
- return math.transformVec3(trueNorthMatrix, vec, resultVec)
113489
+ return math.transformVec3(trueNorthMatrix, vec, dest)
113455
113490
  }
113456
113491
  }());
113457
113492
 
@@ -113467,7 +113502,8 @@ class NavCubePlugin extends Plugin {
113467
113502
  eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(eye, look, eyeLookVec)), 5);
113468
113503
 
113469
113504
  if (self._isProjectNorth && self._projectNorthOffsetAngle) {
113470
- eyeLookVec = rotateTrueNorth(-1, eyeLookVec);
113505
+ eyeLookVec = rotateTrueNorth(-1, eyeLookVec, tempVec3a$4);
113506
+ up = rotateTrueNorth(-1, up, tempVec3b$1);
113471
113507
  }
113472
113508
 
113473
113509
  if (self._zUp) { // +Z up
@@ -113675,10 +113711,11 @@ class NavCubePlugin extends Plugin {
113675
113711
  }
113676
113712
  var dir = self._cubeTextureCanvas.getAreaDir(areaId);
113677
113713
  if (dir) {
113714
+ var up = self._cubeTextureCanvas.getAreaUp(areaId);
113678
113715
  if (self._isProjectNorth && self._projectNorthOffsetAngle) {
113679
- dir = rotateTrueNorth(+1, dir);
113716
+ dir = rotateTrueNorth(+1, dir, tempVec3a$4);
113717
+ up = rotateTrueNorth(+1, up, tempVec3b$1);
113680
113718
  }
113681
- var up = self._cubeTextureCanvas.getAreaUp(areaId);
113682
113719
  flyTo(dir, up, function () {
113683
113720
  if (lastAreaId >= 0) {
113684
113721
  self._cubeTextureCanvas.setAreaHighlighted(lastAreaId, false);