@xeokit/xeokit-sdk 2.4.0-alpha-16 → 2.4.0-alpha-18

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$1i = math.vec3();
8947
+ const tempVec3a$1h = 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$1i);
9027
+ const center = math.getPositionsCenter(worldPositions, tempVec3a$1h);
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$1i);
9063
+ const dirNormalized = math.normalizeVec3(dir, tempVec3a$1h);
9064
9064
  math.mulVec3Scalar(dirNormalized, -rtcCenterToPlaneDist, rtcPlanePos);
9065
9065
  return rtcPlanePos;
9066
9066
  }
@@ -11497,6 +11497,9 @@ class Annotation extends Marker {
11497
11497
  this._marker.addEventListener("mouseleave", () => {
11498
11498
  this.plugin.fire("markerMouseLeave", this);
11499
11499
  });
11500
+ this._marker.addEventListener('wheel', (event) => {
11501
+ this.plugin.viewer.scene.canvas.canvas.dispatchEvent(new WheelEvent('wheel', event));
11502
+ });
11500
11503
  }
11501
11504
  if (!this._labelExternal) {
11502
11505
  if (this._label) {
@@ -11512,6 +11515,9 @@ class Annotation extends Marker {
11512
11515
  this._label = labelFragment.firstChild;
11513
11516
  this._container.appendChild(this._label);
11514
11517
  this._label.style.visibility = (this._markerShown && this._labelShown) ? "visible" : "hidden";
11518
+ this._label.addEventListener('wheel', (event) => {
11519
+ this.plugin.viewer.scene.canvas.canvas.dispatchEvent(new WheelEvent('wheel', event));
11520
+ });
11515
11521
  }
11516
11522
  }
11517
11523
 
@@ -11691,8 +11697,8 @@ class Annotation extends Marker {
11691
11697
  }
11692
11698
  }
11693
11699
 
11694
- const tempVec3a$1h = math.vec3();
11695
- const tempVec3b$d = math.vec3();
11700
+ const tempVec3a$1g = math.vec3();
11701
+ const tempVec3b$c = math.vec3();
11696
11702
  const tempVec3c$9 = math.vec3();
11697
11703
 
11698
11704
  /**
@@ -12169,8 +12175,8 @@ class AnnotationsPlugin extends Plugin {
12169
12175
  if (!pickResult.worldPos || !pickResult.worldNormal) {
12170
12176
  this.error("Param 'pickResult' does not have both worldPos and worldNormal");
12171
12177
  } else {
12172
- const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1h);
12173
- const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$d);
12178
+ const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1g);
12179
+ const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$c);
12174
12180
  const offsetWorldPos = math.addVec3(pickResult.worldPos, offsetVec, tempVec3c$9);
12175
12181
  worldPos = offsetWorldPos;
12176
12182
  entity = pickResult.entity;
@@ -14366,7 +14372,7 @@ const MARKER_COLOR = math.vec3([1.0, 0.0, 0.0]);
14366
14372
  const POINT_SIZE = 20;
14367
14373
  const MARKER_SPRITE_CLIPZ_OFFSET = -0.001; // Amount that we offset sprite clip Z coords to raise them from surfaces
14368
14374
 
14369
- const tempVec3a$1g = math.vec3();
14375
+ const tempVec3a$1f = math.vec3();
14370
14376
 
14371
14377
  /**
14372
14378
  * Manages occlusion testing. Private member of a Renderer.
@@ -14703,7 +14709,7 @@ class OcclusionTester {
14703
14709
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
14704
14710
  if (active) {
14705
14711
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
14706
- gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1g));
14712
+ gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f));
14707
14713
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
14708
14714
  }
14709
14715
  }
@@ -18708,7 +18714,7 @@ class CustomProjection extends Component {
18708
18714
  }
18709
18715
 
18710
18716
  const tempVec3$6 = math.vec3();
18711
- const tempVec3b$c = math.vec3();
18717
+ const tempVec3b$b = math.vec3();
18712
18718
  const tempVec3c$8 = math.vec3();
18713
18719
  const tempVec3d$4 = math.vec3();
18714
18720
  const tempVec3e$3 = math.vec3();
@@ -19018,7 +19024,7 @@ class Camera extends Component {
19018
19024
  orbitYaw(angleInc) {
19019
19025
  let lookEyeVec = math.subVec3(this._eye, this._look, tempVec3$6);
19020
19026
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19021
- lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$c);
19027
+ lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$b);
19022
19028
  this.eye = math.addVec3(this._look, lookEyeVec, tempVec3c$8); // Set eye position as 'look' plus 'eye' vector
19023
19029
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4); // Rotate 'up' vector
19024
19030
  }
@@ -19036,7 +19042,7 @@ class Camera extends Component {
19036
19042
  }
19037
19043
  }
19038
19044
  let eye2 = math.subVec3(this._eye, this._look, tempVec3$6);
19039
- const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
19045
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19040
19046
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19041
19047
  eye2 = math.transformPoint3(tempMat, eye2, tempVec3d$4);
19042
19048
  this.up = math.transformPoint3(tempMat, this._up, tempVec3e$3);
@@ -19051,7 +19057,7 @@ class Camera extends Component {
19051
19057
  yaw(angleInc) {
19052
19058
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19053
19059
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19054
- look2 = math.transformPoint3(tempMat, look2, tempVec3b$c);
19060
+ look2 = math.transformPoint3(tempMat, look2, tempVec3b$b);
19055
19061
  this.look = math.addVec3(look2, this._eye, tempVec3c$8);
19056
19062
  if (this._gimbalLock) {
19057
19063
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4);
@@ -19071,7 +19077,7 @@ class Camera extends Component {
19071
19077
  }
19072
19078
  }
19073
19079
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19074
- const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
19080
+ const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19075
19081
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19076
19082
  this.up = math.transformPoint3(tempMat, this._up, tempVec3f$3);
19077
19083
  look2 = math.transformPoint3(tempMat, look2, tempVec3d$4);
@@ -19088,7 +19094,7 @@ class Camera extends Component {
19088
19094
  const vec = [0, 0, 0];
19089
19095
  let v;
19090
19096
  if (pan[0] !== 0) {
19091
- const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$c));
19097
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$b));
19092
19098
  v = math.mulVec3Scalar(left, pan[0]);
19093
19099
  vec[0] += v[0];
19094
19100
  vec[1] += v[1];
@@ -19117,7 +19123,7 @@ class Camera extends Component {
19117
19123
  */
19118
19124
  zoom(delta) {
19119
19125
  const vec = math.subVec3(this._eye, this._look, tempVec3$6);
19120
- const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$c));
19126
+ const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$b));
19121
19127
  const newLenLook = Math.abs(lenLook + delta);
19122
19128
  if (newLenLook < 0.5) {
19123
19129
  return;
@@ -19579,7 +19585,7 @@ class Camera extends Component {
19579
19585
  }
19580
19586
 
19581
19587
  const tempVec4$9 = math.vec4();
19582
- const tempVec3a$1f = math.vec3();
19588
+ const tempVec3a$1e = math.vec3();
19583
19589
 
19584
19590
  /**
19585
19591
  * @private
@@ -19666,7 +19672,7 @@ class TrianglesDataTextureColorRenderer {
19666
19672
  if (active) {
19667
19673
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
19668
19674
  if (origin) {
19669
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f);
19675
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
19670
19676
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
19671
19677
  } else {
19672
19678
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20193,7 +20199,7 @@ class TrianglesDataTextureColorRenderer {
20193
20199
 
20194
20200
  const defaultColor$6 = new Float32Array([1, 1, 1]);
20195
20201
  math.vec4();
20196
- const tempVec3a$1e = math.vec3();
20202
+ const tempVec3a$1d = math.vec3();
20197
20203
 
20198
20204
  /**
20199
20205
  * @private
@@ -20301,7 +20307,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20301
20307
  if (active) {
20302
20308
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20303
20309
  if (origin) {
20304
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
20310
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20305
20311
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20306
20312
  } else {
20307
20313
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20657,7 +20663,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20657
20663
  }
20658
20664
  }
20659
20665
 
20660
- const tempVec3a$1d = math.vec3();
20666
+ const tempVec3a$1c = math.vec3();
20661
20667
  const defaultColor$5 = new Float32Array([0,0,0,1]);
20662
20668
 
20663
20669
  /**
@@ -20757,7 +20763,7 @@ class TrianglesDataTextureEdgesRenderer {
20757
20763
  if (active) {
20758
20764
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20759
20765
  if (origin) {
20760
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20766
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
20761
20767
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20762
20768
  } else {
20763
20769
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21076,7 +21082,7 @@ class TrianglesDataTextureEdgesRenderer {
21076
21082
  }
21077
21083
  }
21078
21084
 
21079
- const tempVec3a$1c = math.vec3();
21085
+ const tempVec3a$1b = math.vec3();
21080
21086
 
21081
21087
  /**
21082
21088
  * @private
@@ -21150,7 +21156,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21150
21156
  if (active) {
21151
21157
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21152
21158
  if (origin) {
21153
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
21159
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21154
21160
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21155
21161
  } else {
21156
21162
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21478,7 +21484,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21478
21484
  }
21479
21485
  }
21480
21486
 
21481
- const tempVec3a$1b = math.vec3();
21487
+ const tempVec3a$1a = math.vec3();
21482
21488
 
21483
21489
  /**
21484
21490
  * @private
@@ -21565,7 +21571,7 @@ class TrianglesDataTexturePickMeshRenderer {
21565
21571
  if (active) {
21566
21572
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21567
21573
  if (origin) {
21568
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21574
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
21569
21575
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21570
21576
  } else {
21571
21577
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21921,7 +21927,7 @@ class TrianglesDataTexturePickMeshRenderer {
21921
21927
  }
21922
21928
  }
21923
21929
 
21924
- const tempVec3a$1a = math.vec3();
21930
+ const tempVec3a$19 = math.vec3();
21925
21931
 
21926
21932
  /**
21927
21933
  * @private
@@ -22013,7 +22019,7 @@ class TrianglesDataTexturePickDepthRenderer {
22013
22019
  if (active) {
22014
22020
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22015
22021
  if (origin) {
22016
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
22022
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22017
22023
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22018
22024
  } else {
22019
22025
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -22372,7 +22378,7 @@ class TrianglesDataTexturePickDepthRenderer {
22372
22378
  }
22373
22379
  }
22374
22380
 
22375
- const tempVec3a$19 = math.vec3();
22381
+ const tempVec3a$18 = math.vec3();
22376
22382
 
22377
22383
  /**
22378
22384
  * @private
@@ -22464,7 +22470,7 @@ class TrianglesDataTexturePickNormalsRenderer {
22464
22470
  if (active) {
22465
22471
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22466
22472
  if (origin) {
22467
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22473
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
22468
22474
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22469
22475
  } else {
22470
22476
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23028,7 +23034,7 @@ class TrianglesDataTextureOcclusionRenderer {
23028
23034
  }
23029
23035
 
23030
23036
  math.vec4();
23031
- const tempVec3a$18 = math.vec3();
23037
+ const tempVec3a$17 = math.vec3();
23032
23038
 
23033
23039
  /**
23034
23040
  * @private
@@ -23113,7 +23119,7 @@ class TrianglesDataTextureDepthRenderer {
23113
23119
  if (active) {
23114
23120
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23115
23121
  if (origin) {
23116
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
23122
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23117
23123
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23118
23124
  } else {
23119
23125
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23484,7 +23490,7 @@ class TrianglesDataTextureDepthRenderer {
23484
23490
  }
23485
23491
  }
23486
23492
 
23487
- const tempVec3a$17 = math.vec3();
23493
+ const tempVec3a$16 = math.vec3();
23488
23494
 
23489
23495
  /**
23490
23496
  * @private
@@ -23547,7 +23553,7 @@ class TrianglesDataTextureNormalsRenderer {
23547
23553
  if (active) {
23548
23554
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23549
23555
  if (origin) {
23550
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23556
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
23551
23557
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23552
23558
  } else {
23553
23559
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23977,7 +23983,7 @@ class TrianglesDataTextureShadowRenderer {
23977
23983
  }
23978
23984
 
23979
23985
  const tempVec4$8 = math.vec4();
23980
- const tempVec3a$16 = math.vec3();
23986
+ const tempVec3a$15 = math.vec3();
23981
23987
 
23982
23988
  const TEXTURE_DECODE_FUNCS$2 = {
23983
23989
  "linear": "linearToLinear",
@@ -24048,7 +24054,7 @@ class TrianglesDataTextureColorQualityRenderer {
24048
24054
  if (active) {
24049
24055
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24050
24056
  if (origin) {
24051
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
24057
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24052
24058
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24053
24059
  } else {
24054
24060
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -24787,7 +24793,7 @@ class TrianglesDataTextureColorQualityRenderer {
24787
24793
  }
24788
24794
  }
24789
24795
 
24790
- const tempVec3a$15 = math.vec3();
24796
+ const tempVec3a$14 = math.vec3();
24791
24797
 
24792
24798
  /**
24793
24799
  * @private
@@ -24901,7 +24907,7 @@ class TrianglesDataTexturePickNormalsFlatRenderer {
24901
24907
  if (active) {
24902
24908
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24903
24909
  if (origin) {
24904
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24910
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$14);
24905
24911
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24906
24912
  } else {
24907
24913
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -27638,8 +27644,8 @@ const tempUint8Array4 = new Uint8Array (4);
27638
27644
 
27639
27645
  const tempFloat32Array3 = new Float32Array (3);
27640
27646
 
27641
- const tempVec3a$14 = math.vec3();
27642
- const tempVec3b$b = math.vec3();
27647
+ const tempVec3a$13 = math.vec3();
27648
+ const tempVec3b$a = math.vec3();
27643
27649
  const tempVec3c$7 = math.vec3();
27644
27650
  const tempVec3d$3 = math.vec3();
27645
27651
  const tempVec3e$2 = math.vec3();
@@ -29264,8 +29270,8 @@ class TrianglesDataTextureLayer {
29264
29270
  const origin = state.origin;
29265
29271
  const offset = portion.offset;
29266
29272
 
29267
- const rtcRayOrigin = tempVec3a$14;
29268
- const rtcRayDir = tempVec3b$b;
29273
+ const rtcRayOrigin = tempVec3a$13;
29274
+ const rtcRayDir = tempVec3b$a;
29269
29275
 
29270
29276
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$7) : worldRayOrigin); // World -> RTC
29271
29277
  rtcRayDir.set(worldRayDir);
@@ -32114,7 +32120,7 @@ class ViewFrustumCullingManager {
32114
32120
 
32115
32121
  WEBGL_INFO.SUPPORTED_EXTENSIONS["ANGLE_instanced_arrays"];
32116
32122
 
32117
- const tempVec3a$13 = math.vec3();
32123
+ const tempVec3a$12 = math.vec3();
32118
32124
  const tempMat4$3 = math.mat4();
32119
32125
 
32120
32126
  const defaultScale$1 = math.vec3([1, 1, 1]);
@@ -33086,7 +33092,7 @@ class DataTextureSceneModel extends Component {
33086
33092
  }
33087
33093
 
33088
33094
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
33089
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$13) : this._origin;
33095
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$12) : this._origin;
33090
33096
 
33091
33097
  switch (primitive) {
33092
33098
  case "triangles":
@@ -33350,7 +33356,7 @@ class DataTextureSceneModel extends Component {
33350
33356
  if (!origin) {
33351
33357
  origin = cfgOrigin;
33352
33358
  } else {
33353
- origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$13);
33359
+ origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$12);
33354
33360
  }
33355
33361
  } else {
33356
33362
  origin = this._origin;
@@ -35321,8 +35327,11 @@ const Renderer = function (scene, options) {
35321
35327
  *
35322
35328
  * Exit snapshot mode using endSnapshot().
35323
35329
  */
35324
- this.beginSnapshot = function () {
35330
+ this.beginSnapshot = function (params={}) {
35325
35331
  const snapshotBuffer = renderBufferManager.getRenderBuffer("snapshot");
35332
+ if (params.width && params.height) {
35333
+ snapshotBuffer.setSize([params.width, params.height]);
35334
+ }
35326
35335
  snapshotBuffer.bind();
35327
35336
  snapshotBuffer.clear();
35328
35337
  snapshotBound = true;
@@ -40633,11 +40642,7 @@ class SAO extends Component {
40633
40642
 
40634
40643
  super(owner, cfg);
40635
40644
 
40636
- const ua = navigator.userAgent.match(/(opera|chrome|safari|firefox|msie|mobile)\/?\s*(\.?\d+(\.\d+)*)/i);
40637
- const isSafari = (ua && ua[1].toLowerCase() === "safari");
40638
-
40639
- this._supported = (!isSafari) &&
40640
- WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
40645
+ this._supported = WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
40641
40646
 
40642
40647
  this.enabled = cfg.enabled;
40643
40648
  this.kernelRadius = cfg.kernelRadius;
@@ -45979,7 +45984,7 @@ function buildFragmentDraw(mesh) {
45979
45984
  * @author xeolabs / https://github.com/xeolabs
45980
45985
  */
45981
45986
 
45982
- const tempVec3a$12 = math.vec3();
45987
+ const tempVec3a$11 = math.vec3();
45983
45988
 
45984
45989
  const ids$2 = new Map$1({});
45985
45990
 
@@ -46078,7 +46083,7 @@ DrawRenderer.prototype.drawMesh = function (frameCtx, mesh) {
46078
46083
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
46079
46084
  if (active) {
46080
46085
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
46081
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$12) : sectionPlane.pos);
46086
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
46082
46087
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
46083
46088
  }
46084
46089
  }
@@ -47216,7 +47221,7 @@ function buildFragment$5(mesh) {
47216
47221
 
47217
47222
  const ids$1 = new Map$1({});
47218
47223
 
47219
- const tempVec3a$11 = math.vec3();
47224
+ const tempVec3a$10 = math.vec3();
47220
47225
 
47221
47226
  /**
47222
47227
  * @private
@@ -47300,7 +47305,7 @@ EmphasisFillRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47300
47305
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47301
47306
  if (active) {
47302
47307
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47303
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
47308
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47304
47309
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47305
47310
  }
47306
47311
  }
@@ -47636,7 +47641,7 @@ function buildFragment$4(mesh) {
47636
47641
 
47637
47642
  const ids = new Map$1({});
47638
47643
 
47639
- const tempVec3a$10 = math.vec3();
47644
+ const tempVec3a$$ = math.vec3();
47640
47645
 
47641
47646
  /**
47642
47647
  * @private
@@ -47719,7 +47724,7 @@ EmphasisEdgesRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47719
47724
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47720
47725
  if (active) {
47721
47726
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47722
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47727
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
47723
47728
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47724
47729
  }
47725
47730
  }
@@ -48014,7 +48019,7 @@ function buildFragment$3(mesh) {
48014
48019
  * @author xeolabs / https://github.com/xeolabs
48015
48020
  */
48016
48021
 
48017
- const tempVec3a$$ = math.vec3();
48022
+ const tempVec3a$_ = math.vec3();
48018
48023
 
48019
48024
  // No ID, because there is exactly one PickMeshRenderer per scene
48020
48025
 
@@ -48098,7 +48103,7 @@ PickMeshRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48098
48103
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48099
48104
  if (active) {
48100
48105
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48101
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
48106
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48102
48107
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48103
48108
  }
48104
48109
  }
@@ -48331,7 +48336,7 @@ function buildFragment$2(mesh) {
48331
48336
  * @author xeolabs / https://github.com/xeolabs
48332
48337
  */
48333
48338
 
48334
- const tempVec3a$_ = math.vec3();
48339
+ const tempVec3a$Z = math.vec3();
48335
48340
 
48336
48341
  /**
48337
48342
  * @private
@@ -48423,7 +48428,7 @@ PickTriangleRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48423
48428
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48424
48429
  if (active) {
48425
48430
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48426
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48431
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48427
48432
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48428
48433
  }
48429
48434
  }
@@ -48660,7 +48665,7 @@ function buildFragment$1(mesh) {
48660
48665
  * @author xeolabs / https://github.com/xeolabs
48661
48666
  */
48662
48667
 
48663
- const tempVec3a$Z = math.vec3();
48668
+ const tempVec3a$Y = math.vec3();
48664
48669
 
48665
48670
  // No ID, because there is exactly one PickMeshRenderer per scene
48666
48671
 
@@ -48768,7 +48773,7 @@ OcclusionRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48768
48773
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48769
48774
  if (active) {
48770
48775
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48771
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48776
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Y) : sectionPlane.pos);
48772
48777
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48773
48778
  }
48774
48779
  }
@@ -61370,8 +61375,8 @@ class LineSet extends Component {
61370
61375
  }
61371
61376
 
61372
61377
  const tempVec3$4 = math.vec3();
61373
- const tempVec3a$Y = math.vec3();
61374
- const tempVec3b$a = math.vec3();
61378
+ const tempVec3a$X = math.vec3();
61379
+ const tempVec3b$9 = math.vec3();
61375
61380
  const tempVec3c$6 = math.vec3();
61376
61381
 
61377
61382
  /**
@@ -62051,8 +62056,8 @@ class BCFViewpointsPlugin extends Plugin {
62051
62056
  bcfViewpoint.bitmaps.forEach(function (e) {
62052
62057
  const bitmap_type = e.bitmap_type || "jpg"; // "jpg" | "png"
62053
62058
  const bitmap_data = e.bitmap_data; // base64
62054
- let location = xyzObjectToArray(e.location, tempVec3a$Y);
62055
- let normal = xyzObjectToArray(e.normal, tempVec3b$a);
62059
+ let location = xyzObjectToArray(e.location, tempVec3a$X);
62060
+ let normal = xyzObjectToArray(e.normal, tempVec3b$9);
62056
62061
  let up = xyzObjectToArray(e.up, tempVec3c$6);
62057
62062
  let height = e.height || 1;
62058
62063
  if (!bitmap_type) {
@@ -63941,7 +63946,7 @@ class SplineCurve extends Curve {
63941
63946
  }
63942
63947
  }
63943
63948
 
63944
- const tempVec3a$X = math.vec3();
63949
+ const tempVec3a$W = math.vec3();
63945
63950
 
63946
63951
  /**
63947
63952
  * @desc Defines a sequence of frames along which a {@link CameraPathAnimation} can animate a {@link Camera}.
@@ -64073,9 +64078,9 @@ class CameraPath extends Component {
64073
64078
  t = t / (this._frames[this._frames.length - 1].t - this._frames[0].t);
64074
64079
  t = t < 0.0 ? 0.0 : (t > 1.0 ? 1.0 : t);
64075
64080
 
64076
- camera.eye = this._eyeCurve.getPoint(t, tempVec3a$X);
64077
- camera.look = this._lookCurve.getPoint(t, tempVec3a$X);
64078
- camera.up = this._upCurve.getPoint(t, tempVec3a$X);
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);
64079
64084
  }
64080
64085
 
64081
64086
  /**
@@ -65114,7 +65119,7 @@ CameraPathAnimation.PLAYING = 2;
65114
65119
  CameraPathAnimation.PLAYING_TO = 3;
65115
65120
 
65116
65121
  const tempVec3$2 = math.vec3();
65117
- const tempVec3b$9 = math.vec3();
65122
+ const tempVec3b$8 = math.vec3();
65118
65123
  math.vec3();
65119
65124
  const zeroVec$1 = math.vec3([0, -1, 0]);
65120
65125
  const tempQuat = math.vec4([0, 0, 0, 1]);
@@ -65542,7 +65547,7 @@ class ImagePlane extends Component {
65542
65547
  const dist = -math.dotVec3(negDir, tempVec3$2);
65543
65548
 
65544
65549
  math.normalizeVec3(negDir);
65545
- math.mulVec3Scalar(negDir, dist, tempVec3b$9);
65550
+ math.mulVec3Scalar(negDir, dist, tempVec3b$8);
65546
65551
  math.vec3PairToQuaternion(zeroVec$1, dir, tempQuat);
65547
65552
 
65548
65553
  this._node.quaternion = tempQuat;
@@ -66708,8 +66713,8 @@ class SpriteMarker extends Marker {
66708
66713
  }
66709
66714
  }
66710
66715
 
66711
- const tempVec3a$W = math.vec3();
66712
- const tempVec3b$8 = math.vec3();
66716
+ const tempVec3a$V = math.vec3();
66717
+ const tempVec3b$7 = math.vec3();
66713
66718
  const tempMat4a = math.mat4();
66714
66719
 
66715
66720
  /**
@@ -66786,8 +66791,8 @@ function frustumIntersectsAABB3(frustum, aabb) {
66786
66791
 
66787
66792
  let ret = Frustum.INSIDE;
66788
66793
 
66789
- const min = tempVec3a$W;
66790
- const max = tempVec3b$8;
66794
+ const min = tempVec3a$V;
66795
+ const max = tempVec3b$7;
66791
66796
 
66792
66797
  min[0] = aabb[0];
66793
66798
  min[1] = aabb[1];
@@ -69368,7 +69373,7 @@ const RENDER_PASSES = {
69368
69373
  };
69369
69374
 
69370
69375
  const tempVec4$7 = math.vec4();
69371
- const tempVec3a$V = math.vec3();
69376
+ const tempVec3a$U = math.vec3();
69372
69377
 
69373
69378
  /**
69374
69379
  * @private
@@ -69433,7 +69438,7 @@ class TrianglesBatchingColorRenderer {
69433
69438
  if (active) {
69434
69439
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69435
69440
  if (origin) {
69436
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$V);
69441
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69437
69442
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69438
69443
  } else {
69439
69444
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -69861,7 +69866,7 @@ class TrianglesBatchingColorRenderer {
69861
69866
  }
69862
69867
 
69863
69868
  const tempVec4$6 = math.vec4();
69864
- const tempVec3a$U = math.vec3();
69869
+ const tempVec3a$T = math.vec3();
69865
69870
 
69866
69871
  /**
69867
69872
  * @private
@@ -69923,7 +69928,7 @@ class TrianglesBatchingFlatColorRenderer {
69923
69928
  if (active) {
69924
69929
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69925
69930
  if (origin) {
69926
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69931
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
69927
69932
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69928
69933
  } else {
69929
69934
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70340,7 +70345,7 @@ class TrianglesBatchingFlatColorRenderer {
70340
70345
  }
70341
70346
 
70342
70347
  const defaultColor$4 = new Float32Array([1, 1, 1]);
70343
- const tempVec3a$T = math.vec3();
70348
+ const tempVec3a$S = math.vec3();
70344
70349
 
70345
70350
  /**
70346
70351
  * @private
@@ -70424,7 +70429,7 @@ class TrianglesBatchingSilhouetteRenderer {
70424
70429
  if (active) {
70425
70430
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70426
70431
  if (origin) {
70427
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
70432
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70428
70433
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70429
70434
  } else {
70430
70435
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70661,7 +70666,7 @@ class TrianglesBatchingSilhouetteRenderer {
70661
70666
  }
70662
70667
  }
70663
70668
 
70664
- const tempVec3a$S = math.vec3();
70669
+ const tempVec3a$R = math.vec3();
70665
70670
  const defaultColor$3 = new Float32Array([0,0,0,1]);
70666
70671
 
70667
70672
  /**
@@ -70744,7 +70749,7 @@ class TrianglesBatchingEdgesRenderer {
70744
70749
  if (active) {
70745
70750
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70746
70751
  if (origin) {
70747
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70752
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
70748
70753
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70749
70754
  } else {
70750
70755
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70972,7 +70977,7 @@ class TrianglesBatchingEdgesRenderer {
70972
70977
  }
70973
70978
  }
70974
70979
 
70975
- const tempVec3a$R = math.vec3();
70980
+ const tempVec3a$Q = math.vec3();
70976
70981
 
70977
70982
  /**
70978
70983
  * @private
@@ -71032,7 +71037,7 @@ class TrianglesBatchingEdgesColorRenderer {
71032
71037
  if (active) {
71033
71038
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71034
71039
  if (origin) {
71035
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
71040
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71036
71041
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71037
71042
  } else {
71038
71043
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71260,7 +71265,7 @@ class TrianglesBatchingEdgesColorRenderer {
71260
71265
  }
71261
71266
  }
71262
71267
 
71263
- const tempVec3a$Q = math.vec3();
71268
+ const tempVec3a$P = math.vec3();
71264
71269
 
71265
71270
  /**
71266
71271
  * @private
@@ -71326,7 +71331,7 @@ class TrianglesBatchingPickMeshRenderer {
71326
71331
  if (active) {
71327
71332
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71328
71333
  if (origin) {
71329
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71334
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71330
71335
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71331
71336
  } else {
71332
71337
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71556,7 +71561,7 @@ class TrianglesBatchingPickMeshRenderer {
71556
71561
  }
71557
71562
  }
71558
71563
 
71559
- const tempVec3a$P = math.vec3();
71564
+ const tempVec3a$O = math.vec3();
71560
71565
 
71561
71566
  /**
71562
71567
  * @private
@@ -71627,7 +71632,7 @@ class TrianglesBatchingPickDepthRenderer {
71627
71632
  if (active) {
71628
71633
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71629
71634
  if (origin) {
71630
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71635
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71631
71636
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71632
71637
  } else {
71633
71638
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71865,7 +71870,7 @@ class TrianglesBatchingPickDepthRenderer {
71865
71870
  }
71866
71871
  }
71867
71872
 
71868
- const tempVec3a$O = math.vec3();
71873
+ const tempVec3a$N = math.vec3();
71869
71874
 
71870
71875
  /**
71871
71876
  * @private
@@ -71933,7 +71938,7 @@ class TrianglesBatchingPickNormalsRenderer {
71933
71938
  if (active) {
71934
71939
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71935
71940
  if (origin) {
71936
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71941
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
71937
71942
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71938
71943
  } else {
71939
71944
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72158,7 +72163,7 @@ class TrianglesBatchingPickNormalsRenderer {
72158
72163
  }
72159
72164
  }
72160
72165
 
72161
- const tempVec3a$N = math.vec3();
72166
+ const tempVec3a$M = math.vec3();
72162
72167
 
72163
72168
  /**
72164
72169
  * @private
@@ -72218,7 +72223,7 @@ class TrianglesBatchingOcclusionRenderer {
72218
72223
  if (active) {
72219
72224
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72220
72225
  if (origin) {
72221
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
72226
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72222
72227
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72223
72228
  } else {
72224
72229
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72441,7 +72446,7 @@ class TrianglesBatchingOcclusionRenderer {
72441
72446
  }
72442
72447
  }
72443
72448
 
72444
- const tempVec3a$M = math.vec3();
72449
+ const tempVec3a$L = math.vec3();
72445
72450
 
72446
72451
  /**
72447
72452
  * @private
@@ -72501,7 +72506,7 @@ class TrianglesBatchingDepthRenderer {
72501
72506
  if (active) {
72502
72507
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72503
72508
  if (origin) {
72504
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72509
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72505
72510
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72506
72511
  } else {
72507
72512
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72725,7 +72730,7 @@ class TrianglesBatchingDepthRenderer {
72725
72730
  }
72726
72731
  }
72727
72732
 
72728
- const tempVec3a$L = math.vec3();
72733
+ const tempVec3a$K = math.vec3();
72729
72734
 
72730
72735
  /**
72731
72736
  * @private
@@ -72788,7 +72793,7 @@ class TrianglesBatchingNormalsRenderer {
72788
72793
  if (active) {
72789
72794
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72790
72795
  if (origin) {
72791
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72796
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
72792
72797
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72793
72798
  } else {
72794
72799
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73028,7 +73033,7 @@ class TrianglesBatchingNormalsRenderer {
73028
73033
  }
73029
73034
  }
73030
73035
 
73031
- const tempVec3a$K = math.vec3();
73036
+ const tempVec3a$J = math.vec3();
73032
73037
 
73033
73038
  /**
73034
73039
  * Renders BatchingLayer fragment depths to a shadow map.
@@ -73097,7 +73102,7 @@ class TrianglesBatchingShadowRenderer {
73097
73102
  if (active) {
73098
73103
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73099
73104
  if (origin) {
73100
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
73105
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73101
73106
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73102
73107
  } else {
73103
73108
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73269,7 +73274,7 @@ class TrianglesBatchingShadowRenderer {
73269
73274
  }
73270
73275
 
73271
73276
  const tempVec4$5 = math.vec4();
73272
- const tempVec3a$J = math.vec3();
73277
+ const tempVec3a$I = math.vec3();
73273
73278
 
73274
73279
  // const TEXTURE_DECODE_FUNCS = {};
73275
73280
  // TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -73342,7 +73347,7 @@ class TrianglesBatchingPBRRenderer {
73342
73347
  if (active) {
73343
73348
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73344
73349
  if (origin) {
73345
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73350
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
73346
73351
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73347
73352
  } else {
73348
73353
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74147,7 +74152,7 @@ class TrianglesBatchingPBRRenderer {
74147
74152
  }
74148
74153
  }
74149
74154
 
74150
- const tempVec3a$I = math.vec3();
74155
+ const tempVec3a$H = math.vec3();
74151
74156
 
74152
74157
  /**
74153
74158
  * @private
@@ -74214,7 +74219,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74214
74219
  if (active) {
74215
74220
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74216
74221
  if (origin) {
74217
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
74222
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74218
74223
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74219
74224
  } else {
74220
74225
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74424,7 +74429,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74424
74429
  }
74425
74430
 
74426
74431
  const tempVec4$4 = math.vec4();
74427
- const tempVec3a$H = math.vec3();
74432
+ const tempVec3a$G = math.vec3();
74428
74433
 
74429
74434
  /**
74430
74435
  * @private
@@ -74489,7 +74494,7 @@ class TrianglesBatchingColorTextureRenderer {
74489
74494
  if (active) {
74490
74495
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74491
74496
  if (origin) {
74492
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74497
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$G);
74493
74498
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74494
74499
  } else {
74495
74500
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -75495,8 +75500,8 @@ const tempVec4b$a = math.vec4([0, 0, 0, 1]);
75495
75500
  const tempVec4c$7 = math.vec4([0, 0, 0, 1]);
75496
75501
  const tempOBB3$2 = math.OBB3();
75497
75502
 
75498
- const tempVec3a$G = math.vec3();
75499
- const tempVec3b$7 = math.vec3();
75503
+ const tempVec3a$F = math.vec3();
75504
+ const tempVec3b$6 = math.vec3();
75500
75505
  const tempVec3c$5 = math.vec3();
75501
75506
  const tempVec3d$2 = math.vec3();
75502
75507
  const tempVec3e$1 = math.vec3();
@@ -76675,8 +76680,8 @@ class TrianglesBatchingLayer {
76675
76680
  const origin = state.origin;
76676
76681
  const offset = portion.offset;
76677
76682
 
76678
- const rtcRayOrigin = tempVec3a$G;
76679
- const rtcRayDir = tempVec3b$7;
76683
+ const rtcRayOrigin = tempVec3a$F;
76684
+ const rtcRayDir = tempVec3b$6;
76680
76685
 
76681
76686
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$5) : worldRayOrigin); // World -> RTC
76682
76687
  rtcRayDir.set(worldRayDir);
@@ -76799,7 +76804,7 @@ class TrianglesBatchingLayer {
76799
76804
  }
76800
76805
 
76801
76806
  const tempVec4$3 = math.vec4();
76802
- const tempVec3a$F = math.vec3();
76807
+ const tempVec3a$E = math.vec3();
76803
76808
 
76804
76809
  /**
76805
76810
  * @private
@@ -76865,7 +76870,7 @@ class TrianglesInstancingColorRenderer {
76865
76870
  if (active) {
76866
76871
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
76867
76872
  if (origin) {
76868
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$F);
76873
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
76869
76874
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
76870
76875
  } else {
76871
76876
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77342,7 +77347,7 @@ class TrianglesInstancingColorRenderer {
77342
77347
  }
77343
77348
 
77344
77349
  const tempVec4$2 = math.vec4();
77345
- const tempVec3a$E = math.vec3();
77350
+ const tempVec3a$D = math.vec3();
77346
77351
 
77347
77352
  /**
77348
77353
  * @private
@@ -77404,7 +77409,7 @@ class TrianglesInstancingFlatColorRenderer {
77404
77409
  if (active) {
77405
77410
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77406
77411
  if (origin) {
77407
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
77412
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77408
77413
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77409
77414
  } else {
77410
77415
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77851,7 +77856,7 @@ class TrianglesInstancingFlatColorRenderer {
77851
77856
  }
77852
77857
  }
77853
77858
 
77854
- const tempVec3a$D = math.vec3();
77859
+ const tempVec3a$C = math.vec3();
77855
77860
 
77856
77861
  /**
77857
77862
  * @private
@@ -77934,7 +77939,7 @@ class TrianglesInstancingSilhouetteRenderer {
77934
77939
  if (active) {
77935
77940
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77936
77941
  if (origin) {
77937
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77942
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
77938
77943
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77939
77944
  } else {
77940
77945
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78206,7 +78211,7 @@ class TrianglesInstancingSilhouetteRenderer {
78206
78211
  }
78207
78212
  }
78208
78213
 
78209
- const tempVec3a$C = math.vec3();
78214
+ const tempVec3a$B = math.vec3();
78210
78215
  const defaultColor$2 = new Float32Array([0,0,0,1]);
78211
78216
 
78212
78217
  /**
@@ -78290,7 +78295,7 @@ class TrianglesInstancingEdgesRenderer {
78290
78295
  if (active) {
78291
78296
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78292
78297
  if (origin) {
78293
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
78298
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78294
78299
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78295
78300
  } else {
78296
78301
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78551,7 +78556,7 @@ class TrianglesInstancingEdgesRenderer {
78551
78556
  }
78552
78557
  }
78553
78558
 
78554
- const tempVec3a$B = math.vec3();
78559
+ const tempVec3a$A = math.vec3();
78555
78560
 
78556
78561
  /**
78557
78562
  * @private
@@ -78612,7 +78617,7 @@ class TrianglesInstancingEdgesColorRenderer {
78612
78617
  if (active) {
78613
78618
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78614
78619
  if (origin) {
78615
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78620
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78616
78621
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78617
78622
  } else {
78618
78623
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78878,7 +78883,7 @@ class TrianglesInstancingEdgesColorRenderer {
78878
78883
  }
78879
78884
  }
78880
78885
 
78881
- const tempVec3a$A = math.vec3();
78886
+ const tempVec3a$z = math.vec3();
78882
78887
 
78883
78888
  /**
78884
78889
  * @private
@@ -78981,7 +78986,7 @@ class TrianglesInstancingPickMeshRenderer {
78981
78986
  if (active) {
78982
78987
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78983
78988
  if (origin) {
78984
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78989
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
78985
78990
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78986
78991
  } else {
78987
78992
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79216,7 +79221,7 @@ class TrianglesInstancingPickMeshRenderer {
79216
79221
  }
79217
79222
  }
79218
79223
 
79219
- const tempVec3a$z = math.vec3();
79224
+ const tempVec3a$y = math.vec3();
79220
79225
 
79221
79226
  /**
79222
79227
  * @private
@@ -79293,7 +79298,7 @@ class TrianglesInstancingPickDepthRenderer {
79293
79298
  if (active) {
79294
79299
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79295
79300
  if (origin) {
79296
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
79301
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79297
79302
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79298
79303
  } else {
79299
79304
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79561,7 +79566,7 @@ class TrianglesInstancingPickDepthRenderer {
79561
79566
  }
79562
79567
  }
79563
79568
 
79564
- const tempVec3a$y = math.vec3();
79569
+ const tempVec3a$x = math.vec3();
79565
79570
 
79566
79571
  /**
79567
79572
  * @private
@@ -79638,7 +79643,7 @@ class TrianglesInstancingPickNormalsRenderer {
79638
79643
  if (active) {
79639
79644
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79640
79645
  if (origin) {
79641
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79646
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79642
79647
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79643
79648
  } else {
79644
79649
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79915,7 +79920,7 @@ class TrianglesInstancingPickNormalsRenderer {
79915
79920
  }
79916
79921
  }
79917
79922
 
79918
- const tempVec3a$x = math.vec3();
79923
+ const tempVec3a$w = math.vec3();
79919
79924
 
79920
79925
  /**
79921
79926
  * @private
@@ -79976,7 +79981,7 @@ class TrianglesInstancingOcclusionRenderer {
79976
79981
  if (active) {
79977
79982
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79978
79983
  if (origin) {
79979
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79984
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
79980
79985
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79981
79986
  } else {
79982
79987
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80234,7 +80239,7 @@ class TrianglesInstancingOcclusionRenderer {
80234
80239
  }
80235
80240
  }
80236
80241
 
80237
- const tempVec3a$w = math.vec3();
80242
+ const tempVec3a$v = math.vec3();
80238
80243
 
80239
80244
  /**
80240
80245
  * @private
@@ -80295,7 +80300,7 @@ class TrianglesInstancingDepthRenderer {
80295
80300
  if (active) {
80296
80301
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80297
80302
  if (origin) {
80298
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
80303
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80299
80304
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80300
80305
  } else {
80301
80306
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80545,7 +80550,7 @@ class TrianglesInstancingDepthRenderer {
80545
80550
  }
80546
80551
  }
80547
80552
 
80548
- const tempVec3a$v = math.vec3();
80553
+ const tempVec3a$u = math.vec3();
80549
80554
 
80550
80555
  /**
80551
80556
  * @private
@@ -80609,7 +80614,7 @@ class TrianglesInstancingNormalsRenderer {
80609
80614
  if (active) {
80610
80615
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80611
80616
  if (origin) {
80612
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80617
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80613
80618
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80614
80619
  } else {
80615
80620
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80889,7 +80894,7 @@ class TrianglesInstancingNormalsRenderer {
80889
80894
  }
80890
80895
  }
80891
80896
 
80892
- const tempVec3a$u = math.vec3();
80897
+ const tempVec3a$t = math.vec3();
80893
80898
 
80894
80899
  /**
80895
80900
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -80976,7 +80981,7 @@ class TrianglesInstancingShadowRenderer {
80976
80981
  if (active) {
80977
80982
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80978
80983
  if (origin) {
80979
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80984
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
80980
80985
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80981
80986
  } else {
80982
80987
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -81169,7 +81174,7 @@ class TrianglesInstancingShadowRenderer {
81169
81174
  }
81170
81175
 
81171
81176
  const tempVec4$1 = math.vec4();
81172
- const tempVec3a$t = math.vec3();
81177
+ const tempVec3a$s = math.vec3();
81173
81178
 
81174
81179
  const TEXTURE_DECODE_FUNCS = {};
81175
81180
  TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -81243,7 +81248,7 @@ class TrianglesInstancingPBRRenderer {
81243
81248
  if (active) {
81244
81249
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
81245
81250
  if (origin) {
81246
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
81251
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
81247
81252
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
81248
81253
  } else {
81249
81254
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82079,7 +82084,7 @@ class TrianglesInstancingPBRRenderer {
82079
82084
  }
82080
82085
  }
82081
82086
 
82082
- const tempVec3a$s = math.vec3();
82087
+ const tempVec3a$r = math.vec3();
82083
82088
 
82084
82089
  /**
82085
82090
  * @private
@@ -82154,7 +82159,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82154
82159
  if (active) {
82155
82160
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82156
82161
  if (origin) {
82157
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
82162
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82158
82163
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82159
82164
  } else {
82160
82165
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82394,7 +82399,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82394
82399
  }
82395
82400
 
82396
82401
  const tempVec4 = math.vec4();
82397
- const tempVec3a$r = math.vec3();
82402
+ const tempVec3a$q = math.vec3();
82398
82403
 
82399
82404
  /**
82400
82405
  * @private
@@ -82459,7 +82464,7 @@ class TrianglesInstancingColorTextureRenderer {
82459
82464
  if (active) {
82460
82465
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82461
82466
  if (origin) {
82462
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82467
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$q);
82463
82468
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82464
82469
  } else {
82465
82470
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -83270,8 +83275,8 @@ const tempVec4b$9 = math.vec4([0, 0, 0, 1]);
83270
83275
  const tempVec4c$6 = math.vec4([0, 0, 0, 1]);
83271
83276
  const tempVec3fa$2 = new Float32Array(3);
83272
83277
 
83273
- const tempVec3a$q = math.vec3();
83274
- const tempVec3b$6 = math.vec3();
83278
+ const tempVec3a$p = math.vec3();
83279
+ const tempVec3b$5 = math.vec3();
83275
83280
  const tempVec3c$4 = math.vec3();
83276
83281
  const tempVec3d$1 = math.vec3();
83277
83282
  const tempVec3e = math.vec3();
@@ -84199,8 +84204,8 @@ class TrianglesInstancingLayer {
84199
84204
  const origin = state.origin;
84200
84205
  const offset = portion.offset;
84201
84206
 
84202
- const rtcRayOrigin = tempVec3a$q;
84203
- const rtcRayDir = tempVec3b$6;
84207
+ const rtcRayOrigin = tempVec3a$p;
84208
+ const rtcRayDir = tempVec3b$5;
84204
84209
 
84205
84210
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$4) : worldRayOrigin); // World -> RTC
84206
84211
  rtcRayDir.set(worldRayDir);
@@ -84333,7 +84338,7 @@ class TrianglesInstancingLayer {
84333
84338
  }
84334
84339
  }
84335
84340
 
84336
- const tempVec3a$p = math.vec3();
84341
+ const tempVec3a$o = math.vec3();
84337
84342
 
84338
84343
  /**
84339
84344
  * @private
@@ -84396,7 +84401,7 @@ class LinesBatchingColorRenderer {
84396
84401
  if (active) {
84397
84402
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84398
84403
  if (origin) {
84399
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$p);
84404
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84400
84405
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84401
84406
  } else {
84402
84407
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -84616,7 +84621,7 @@ class LinesBatchingColorRenderer {
84616
84621
  }
84617
84622
 
84618
84623
  const defaultColor$1 = new Float32Array([1, 1, 1]);
84619
- const tempVec3a$o = math.vec3();
84624
+ const tempVec3a$n = math.vec3();
84620
84625
 
84621
84626
  /**
84622
84627
  * @private
@@ -84703,7 +84708,7 @@ class LinesBatchingSilhouetteRenderer {
84703
84708
  if (active) {
84704
84709
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84705
84710
  if (origin) {
84706
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84711
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
84707
84712
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84708
84713
  } else {
84709
84714
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -85800,7 +85805,7 @@ class LinesBatchingLayer {
85800
85805
  }
85801
85806
  }
85802
85807
 
85803
- const tempVec3a$n = math.vec3();
85808
+ const tempVec3a$m = math.vec3();
85804
85809
 
85805
85810
  /**
85806
85811
  * @private
@@ -85863,7 +85868,7 @@ class LinesInstancingColorRenderer {
85863
85868
  if (active) {
85864
85869
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
85865
85870
  if (origin) {
85866
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
85871
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
85867
85872
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
85868
85873
  } else {
85869
85874
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -86145,7 +86150,7 @@ class LinesInstancingColorRenderer {
86145
86150
  }
86146
86151
  }
86147
86152
 
86148
- const tempVec3a$m = math.vec3();
86153
+ const tempVec3a$l = math.vec3();
86149
86154
 
86150
86155
  /**
86151
86156
  * @private
@@ -86230,7 +86235,7 @@ class LinesInstancingSilhouetteRenderer {
86230
86235
  if (active) {
86231
86236
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
86232
86237
  if (origin) {
86233
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
86238
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
86234
86239
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
86235
86240
  } else {
86236
86241
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87212,7 +87217,7 @@ class LinesInstancingLayer {
87212
87217
  }
87213
87218
  }
87214
87219
 
87215
- const tempVec3a$l = math.vec3();
87220
+ const tempVec3a$k = math.vec3();
87216
87221
 
87217
87222
  /**
87218
87223
  * @private
@@ -87273,7 +87278,7 @@ class PointsBatchingColorRenderer {
87273
87278
  if (active) {
87274
87279
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87275
87280
  if (origin) {
87276
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
87281
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87277
87282
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87278
87283
  } else {
87279
87284
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87558,7 +87563,7 @@ class PointsBatchingColorRenderer {
87558
87563
  }
87559
87564
 
87560
87565
  const defaultColor = new Float32Array([1, 1, 1]);
87561
- const tempVec3a$k = math.vec3();
87566
+ const tempVec3a$j = math.vec3();
87562
87567
 
87563
87568
  /**
87564
87569
  * @private
@@ -87643,7 +87648,7 @@ class PointsBatchingSilhouetteRenderer {
87643
87648
  if (active) {
87644
87649
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87645
87650
  if (origin) {
87646
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87651
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87647
87652
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87648
87653
  } else {
87649
87654
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87887,7 +87892,7 @@ class PointsBatchingSilhouetteRenderer {
87887
87892
  }
87888
87893
  }
87889
87894
 
87890
- const tempVec3a$j = math.vec3();
87895
+ const tempVec3a$i = math.vec3();
87891
87896
 
87892
87897
  /**
87893
87898
  * @private
@@ -87954,7 +87959,7 @@ class PointsBatchingPickMeshRenderer {
87954
87959
  if (active) {
87955
87960
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87956
87961
  if (origin) {
87957
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87962
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
87958
87963
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87959
87964
  } else {
87960
87965
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88199,7 +88204,7 @@ class PointsBatchingPickMeshRenderer {
88199
88204
  }
88200
88205
  }
88201
88206
 
88202
- const tempVec3a$i = math.vec3();
88207
+ const tempVec3a$h = math.vec3();
88203
88208
 
88204
88209
  /**
88205
88210
  * @private
@@ -88271,7 +88276,7 @@ class PointsBatchingPickDepthRenderer {
88271
88276
  if (active) {
88272
88277
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88273
88278
  if (origin) {
88274
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
88279
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88275
88280
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88276
88281
  } else {
88277
88282
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88522,7 +88527,7 @@ class PointsBatchingPickDepthRenderer {
88522
88527
  }
88523
88528
  }
88524
88529
 
88525
- const tempVec3a$h = math.vec3();
88530
+ const tempVec3a$g = math.vec3();
88526
88531
 
88527
88532
  /**
88528
88533
  * @private
@@ -88583,7 +88588,7 @@ class PointsBatchingOcclusionRenderer {
88583
88588
  if (active) {
88584
88589
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88585
88590
  if (origin) {
88586
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88591
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$g);
88587
88592
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88588
88593
  } else {
88589
88594
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88949,8 +88954,8 @@ class PointsBatchingBuffer {
88949
88954
  }
88950
88955
  }
88951
88956
 
88952
- const tempVec3a$g = math.vec4();
88953
- const tempVec3b$5 = math.vec4();
88957
+ const tempVec3a$f = math.vec4();
88958
+ const tempVec3b$4 = math.vec4();
88954
88959
  const tempVec4a$6 = math.vec4([0, 0, 0, 1]);
88955
88960
  const tempVec4b$6 = math.vec4([0, 0, 0, 1]);
88956
88961
  const tempVec4c$3 = math.vec4([0, 0, 0, 1]);
@@ -89102,8 +89107,8 @@ class PointsBatchingLayer {
89102
89107
 
89103
89108
  const bounds = geometryCompressionUtils.getPositionsBounds(positionsCompressed);
89104
89109
 
89105
- const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$g);
89106
- const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$5);
89110
+ const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$f);
89111
+ const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$4);
89107
89112
 
89108
89113
  worldAABB[0] = min[0];
89109
89114
  worldAABB[1] = min[1];
@@ -89741,7 +89746,7 @@ class PointsBatchingLayer {
89741
89746
  }
89742
89747
  }
89743
89748
 
89744
- const tempVec3a$f = math.vec3();
89749
+ const tempVec3a$e = math.vec3();
89745
89750
 
89746
89751
  /**
89747
89752
  * @private
@@ -89810,7 +89815,7 @@ class PointsInstancingColorRenderer {
89810
89815
  if (active) {
89811
89816
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
89812
89817
  if (origin) {
89813
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$f);
89818
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
89814
89819
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
89815
89820
  } else {
89816
89821
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90120,7 +90125,7 @@ class PointsInstancingColorRenderer {
90120
90125
  }
90121
90126
  }
90122
90127
 
90123
- const tempVec3a$e = math.vec3();
90128
+ const tempVec3a$d = math.vec3();
90124
90129
 
90125
90130
  /**
90126
90131
  * @private
@@ -90204,7 +90209,7 @@ class PointsInstancingSilhouetteRenderer {
90204
90209
  if (active) {
90205
90210
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90206
90211
  if (origin) {
90207
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
90212
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90208
90213
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90209
90214
  } else {
90210
90215
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90485,7 +90490,7 @@ class PointsInstancingSilhouetteRenderer {
90485
90490
  }
90486
90491
  }
90487
90492
 
90488
- const tempVec3a$d = math.vec3();
90493
+ const tempVec3a$c = math.vec3();
90489
90494
 
90490
90495
  /**
90491
90496
  * @private
@@ -90591,7 +90596,7 @@ class PointsInstancingPickMeshRenderer {
90591
90596
  if (active) {
90592
90597
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90593
90598
  if (origin) {
90594
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90599
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90595
90600
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90596
90601
  } else {
90597
90602
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90842,7 +90847,7 @@ class PointsInstancingPickMeshRenderer {
90842
90847
  }
90843
90848
  }
90844
90849
 
90845
- const tempVec3a$c = math.vec3();
90850
+ const tempVec3a$b = math.vec3();
90846
90851
 
90847
90852
  /**
90848
90853
  * @private
@@ -90920,7 +90925,7 @@ class PointsInstancingPickDepthRenderer {
90920
90925
  if (active) {
90921
90926
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90922
90927
  if (origin) {
90923
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90928
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
90924
90929
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90925
90930
  } else {
90926
90931
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91208,7 +91213,7 @@ class PointsInstancingPickDepthRenderer {
91208
91213
  }
91209
91214
  }
91210
91215
 
91211
- const tempVec3a$b = math.vec3();
91216
+ const tempVec3a$a = math.vec3();
91212
91217
 
91213
91218
  /**
91214
91219
  * @private
@@ -91270,7 +91275,7 @@ class PointsInstancingOcclusionRenderer {
91270
91275
  if (active) {
91271
91276
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91272
91277
  if (origin) {
91273
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
91278
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91274
91279
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91275
91280
  } else {
91276
91281
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91559,7 +91564,7 @@ class PointsInstancingOcclusionRenderer {
91559
91564
  }
91560
91565
  }
91561
91566
 
91562
- const tempVec3a$a = math.vec3();
91567
+ const tempVec3a$9 = math.vec3();
91563
91568
 
91564
91569
  /**
91565
91570
  * @private
@@ -91621,7 +91626,7 @@ class PointsInstancingDepthRenderer {
91621
91626
  if (active) {
91622
91627
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91623
91628
  if (origin) {
91624
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91629
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
91625
91630
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91626
91631
  } else {
91627
91632
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91905,7 +91910,7 @@ class PointsInstancingDepthRenderer {
91905
91910
  }
91906
91911
  }
91907
91912
 
91908
- const tempVec3a$9 = math.vec3();
91913
+ const tempVec3a$8 = math.vec3();
91909
91914
 
91910
91915
  /**
91911
91916
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -91992,7 +91997,7 @@ class PointsInstancingShadowRenderer {
91992
91997
  if (active) {
91993
91998
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91994
91999
  if (origin) {
91995
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
92000
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$8);
91996
92001
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91997
92002
  } else {
91998
92003
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -94333,7 +94338,7 @@ function getKTX2TextureTranscoder(viewer) {
94333
94338
  return transcoder;
94334
94339
  }
94335
94340
 
94336
- const tempVec3a$8 = math.vec3();
94341
+ const tempVec3a$7 = math.vec3();
94337
94342
  const tempMat4$1 = math.mat4();
94338
94343
 
94339
94344
  const defaultScale = math.vec3([1, 1, 1]);
@@ -96714,7 +96719,7 @@ class VBOSceneModel extends Component {
96714
96719
  }
96715
96720
 
96716
96721
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
96717
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$8) : this._origin;
96722
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$7) : this._origin;
96718
96723
 
96719
96724
  const instancingLayer = this._getInstancingLayer(origin, textureSetId, geometryId);
96720
96725
 
@@ -96776,7 +96781,7 @@ class VBOSceneModel extends Component {
96776
96781
 
96777
96782
  let indices = cfg.indices;
96778
96783
  let edgeIndices = cfg.edgeIndices;
96779
- let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$8) : this._origin;
96784
+ let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$7) : this._origin;
96780
96785
  let positions = cfg.positions;
96781
96786
 
96782
96787
  if (positions) {
@@ -97790,8 +97795,8 @@ class TextureTranscoder {
97790
97795
  const screenPos = math.vec4();
97791
97796
  const viewPos = math.vec4();
97792
97797
 
97793
- const tempVec3a$7 = math.vec3();
97794
- const tempVec3b$4 = math.vec3();
97798
+ const tempVec3a$6 = math.vec3();
97799
+ const tempVec3b$3 = math.vec3();
97795
97800
  const tempVec3c$3 = math.vec3();
97796
97801
 
97797
97802
  const tempVec4a$4 = math.vec4();
@@ -97825,7 +97830,7 @@ class PanController {
97825
97830
  const camera = this._scene.camera;
97826
97831
 
97827
97832
  if (optionalTargetWorldPos) {
97828
- const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97833
+ const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97829
97834
  const eyeWorldPosDist = math.lenVec3(eyeToWorldPosVec);
97830
97835
  dolliedThroughSurface = (eyeWorldPosDist < dollyDelta);
97831
97836
  }
@@ -97849,9 +97854,9 @@ class PanController {
97849
97854
  // suddenly a lot closer than the point we pivoted about on the surface of the last object
97850
97855
  // that we click-drag-pivoted on.
97851
97856
 
97852
- const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97857
+ const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97853
97858
  const lenEyeTargetVec = math.lenVec3(eyeTargetVec);
97854
- const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$4)), lenEyeTargetVec);
97859
+ const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$3)), lenEyeTargetVec);
97855
97860
  camera.look = [camera.eye[0] + eyeLookVec[0], camera.eye[1] + eyeLookVec[1], camera.eye[2] + eyeLookVec[2]];
97856
97861
  }
97857
97862
 
@@ -97868,7 +97873,7 @@ class PanController {
97868
97873
 
97869
97874
  const worldPos2 = this._unproject(targetCanvasPos, tempVec4b$4);
97870
97875
  const offset = math.subVec3(worldPos2, worldPos1, tempVec4c$1);
97871
- const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$7)), -dollyDelta, tempVec3b$4);
97876
+ const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6)), -dollyDelta, tempVec3b$3);
97872
97877
  const moveVec = math.addVec3(offset, eyeLookMoveVec, tempVec3c$3);
97873
97878
 
97874
97879
  camera.eye = [camera.eye[0] - moveVec[0], camera.eye[1] - moveVec[1], camera.eye[2] - moveVec[2]];
@@ -97896,8 +97901,8 @@ class PanController {
97896
97901
  }
97897
97902
  }
97898
97903
 
97899
- const tempVec3a$6 = math.vec3();
97900
- const tempVec3b$3 = math.vec3();
97904
+ const tempVec3a$5 = math.vec3();
97905
+ const tempVec3b$2 = math.vec3();
97901
97906
  const tempVec3c$2 = math.vec3();
97902
97907
 
97903
97908
  const tempVec4a$3 = math.vec4();
@@ -98029,10 +98034,10 @@ class PivotController {
98029
98034
 
98030
98035
  _cameraLookingDownwards() { // Returns true if angle between camera viewing direction and World-space "up" axis is too small
98031
98036
  const camera = this._scene.camera;
98032
- const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6));
98033
- const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$3);
98037
+ const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$5));
98038
+ const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$2);
98034
98039
  let rightAxisLen = math.sqLenVec3(rightAxis);
98035
- return (Math.abs(rightAxisLen) <= 0.1);
98040
+ return (rightAxisLen <= 0.0001);
98036
98041
  }
98037
98042
 
98038
98043
  /**
@@ -98070,8 +98075,8 @@ class PivotController {
98070
98075
  const screenZ = math.dotVec4(D, Pt3) / math.dotVec4(D, Pt4);
98071
98076
  const worldPos = tempVec4a$3;
98072
98077
  camera.project.unproject(canvasPos, screenZ, tempVec4b$3, tempVec4c, worldPos);
98073
- const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$6));
98074
- const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$3), tempVec3c$2);
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);
98075
98080
  this.setPivotPos(posOnSphere);
98076
98081
  }
98077
98082
 
@@ -98093,10 +98098,6 @@ class PivotController {
98093
98098
  if (!this._pivoting) {
98094
98099
  return;
98095
98100
  }
98096
- if (this._cameraLookingDownwards()) {
98097
- this._pivoting = false;
98098
- return;
98099
- }
98100
98101
  if (yawInc === 0 && pitchInc === 0) {
98101
98102
  return;
98102
98103
  }
@@ -98706,8 +98707,8 @@ class MousePanRotateDollyHandler {
98706
98707
  }
98707
98708
 
98708
98709
  const center = math.vec3();
98709
- const tempVec3a$5 = math.vec3();
98710
- const tempVec3b$2 = math.vec3();
98710
+ const tempVec3a$4 = math.vec3();
98711
+ const tempVec3b$1 = math.vec3();
98711
98712
  const tempVec3c$1 = math.vec3();
98712
98713
  const tempVec3d = math.vec3();
98713
98714
 
@@ -98761,39 +98762,39 @@ class KeyboardAxisViewHandler {
98761
98762
 
98762
98763
  if (axisViewRight) {
98763
98764
 
98764
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$5), tempVec3d));
98765
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$4), tempVec3d));
98765
98766
  tempCameraTarget.look.set(center);
98766
98767
  tempCameraTarget.up.set(camera.worldUp);
98767
98768
 
98768
98769
  } else if (axisViewBack) {
98769
98770
 
98770
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$5), tempVec3d));
98771
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$4), tempVec3d));
98771
98772
  tempCameraTarget.look.set(center);
98772
98773
  tempCameraTarget.up.set(camera.worldUp);
98773
98774
 
98774
98775
  } else if (axisViewLeft) {
98775
98776
 
98776
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$5), tempVec3d));
98777
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$4), tempVec3d));
98777
98778
  tempCameraTarget.look.set(center);
98778
98779
  tempCameraTarget.up.set(camera.worldUp);
98779
98780
 
98780
98781
  } else if (axisViewFront) {
98781
98782
 
98782
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$5), tempVec3d));
98783
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$4), tempVec3d));
98783
98784
  tempCameraTarget.look.set(center);
98784
98785
  tempCameraTarget.up.set(camera.worldUp);
98785
98786
 
98786
98787
  } else if (axisViewTop) {
98787
98788
 
98788
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$5), tempVec3d));
98789
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$4), tempVec3d));
98789
98790
  tempCameraTarget.look.set(center);
98790
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$2), tempVec3c$1));
98791
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$1), tempVec3c$1));
98791
98792
 
98792
98793
  } else if (axisViewBottom) {
98793
98794
 
98794
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$5), tempVec3d));
98795
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$4), tempVec3d));
98795
98796
  tempCameraTarget.look.set(center);
98796
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$2)));
98797
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$1)));
98797
98798
  }
98798
98799
 
98799
98800
  if ((!configs.firstPerson) && configs.followPointer) {
@@ -99367,8 +99368,6 @@ class KeyboardPanRotateDollyHandler {
99367
99368
  const SCALE_DOLLY_EACH_FRAME = 1; // Recalculate dolly speed for eye->target distance on each Nth frame
99368
99369
  const EPSILON = 0.001;
99369
99370
  const tempVec3$1 = math.vec3();
99370
- const tempVec3a$4 = math.vec3();
99371
- const tempVec3b$1 = math.vec3();
99372
99371
 
99373
99372
  /**
99374
99373
  * Handles camera updates on each "tick" that were scheduled by the various controllers.
@@ -99388,7 +99387,7 @@ class CameraUpdater {
99388
99387
  let countDown = SCALE_DOLLY_EACH_FRAME; // Decrements on each tick
99389
99388
  let dollyDistFactor = 1.0; // Calculated when countDown is zero
99390
99389
  let followPointerWorldPos = null; // Holds the pointer's World position when configs.followPointer is true
99391
-
99390
+
99392
99391
  this._onTick = scene.on("tick", () => {
99393
99392
 
99394
99393
  if (!(configs.active && configs.pointerEnabled)) {
@@ -99449,7 +99448,7 @@ class CameraUpdater {
99449
99448
 
99450
99449
  if (pickController.pickResult && pickController.pickResult.worldPos) {
99451
99450
  followPointerWorldPos = pickController.pickResult.worldPos;
99452
-
99451
+
99453
99452
  } else {
99454
99453
  dollyDistFactor = 1.0;
99455
99454
  followPointerWorldPos = null;
@@ -99669,13 +99668,6 @@ class CameraUpdater {
99669
99668
  });
99670
99669
  }
99671
99670
 
99672
- isLookingDownwards(look, eye) {
99673
- const camera = this._scene.camera;
99674
- const forwardAxis = math.normalizeVec3(math.subVec3(look, eye, tempVec3a$4));
99675
- const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$1);
99676
- let rightAxisLen = math.sqLenVec3(rightAxis);
99677
- return (Math.abs(rightAxisLen) <= 0.1);
99678
- }
99679
99671
 
99680
99672
  destroy() {
99681
99673
  this._scene.off(this._onTick);
@@ -103062,27 +103054,27 @@ class Viewer {
103062
103054
 
103063
103055
  const needFinishSnapshot = (!this._snapshotBegun);
103064
103056
 
103065
- if (!this._snapshotBegun) {
103066
- this.beginSnapshot();
103067
- }
103068
-
103069
- if (!params.includeGizmos) {
103070
- this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
103071
- }
103072
-
103073
103057
  const resize = (params.width !== undefined && params.height !== undefined);
103074
103058
  const canvas = this.scene.canvas.canvas;
103075
103059
  const saveWidth = canvas.clientWidth;
103076
103060
  const saveHeight = canvas.clientHeight;
103077
- const saveCssWidth = canvas.style.width;
103078
- const saveCssHeight = canvas.style.height;
103061
+ canvas.style.width;
103062
+ canvas.style.height;
103079
103063
 
103080
103064
  const width = params.width ? Math.floor(params.width) : canvas.width;
103081
103065
  const height = params.height ? Math.floor(params.height) : canvas.height;
103082
103066
 
103083
103067
  if (resize) {
103084
- canvas.style.width = width + "px";
103085
- canvas.style.height = height + "px";
103068
+ canvas.width = width;
103069
+ canvas.height = height;
103070
+ }
103071
+
103072
+ if (!this._snapshotBegun) {
103073
+ this.beginSnapshot();
103074
+ }
103075
+
103076
+ if (!params.includeGizmos) {
103077
+ this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
103086
103078
  }
103087
103079
 
103088
103080
  this.scene._renderer.renderSnapshot();
@@ -103090,8 +103082,6 @@ class Viewer {
103090
103082
  const imageDataURI = this.scene._renderer.readSnapshot(params);
103091
103083
 
103092
103084
  if (resize) {
103093
- canvas.style.width = saveCssWidth;
103094
- canvas.style.height = saveCssHeight;
103095
103085
  canvas.width = saveWidth;
103096
103086
  canvas.height = saveHeight;
103097
103087