@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.
@@ -8940,7 +8940,7 @@ class VBOSceneModelNode {
8940
8940
 
8941
8941
  }
8942
8942
 
8943
- const tempVec3a$1i = math.vec3();
8943
+ const tempVec3a$1h = math.vec3();
8944
8944
 
8945
8945
  /**
8946
8946
  * Given a view matrix and a relative-to-center (RTC) coordinate origin, returns a view matrix
@@ -9020,7 +9020,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
9020
9020
  */
9021
9021
  function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
9022
9022
 
9023
- const center = math.getPositionsCenter(worldPositions, tempVec3a$1i);
9023
+ const center = math.getPositionsCenter(worldPositions, tempVec3a$1h);
9024
9024
 
9025
9025
  const rtcCenterX = Math.round(center[0] / cellSize) * cellSize;
9026
9026
  const rtcCenterY = Math.round(center[1] / cellSize) * cellSize;
@@ -9056,7 +9056,7 @@ function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
9056
9056
  */
9057
9057
  function getPlaneRTCPos(dist, dir, rtcCenter, rtcPlanePos) {
9058
9058
  const rtcCenterToPlaneDist = math.dotVec3(dir, rtcCenter) + dist;
9059
- const dirNormalized = math.normalizeVec3(dir, tempVec3a$1i);
9059
+ const dirNormalized = math.normalizeVec3(dir, tempVec3a$1h);
9060
9060
  math.mulVec3Scalar(dirNormalized, -rtcCenterToPlaneDist, rtcPlanePos);
9061
9061
  return rtcPlanePos;
9062
9062
  }
@@ -11493,6 +11493,9 @@ class Annotation extends Marker {
11493
11493
  this._marker.addEventListener("mouseleave", () => {
11494
11494
  this.plugin.fire("markerMouseLeave", this);
11495
11495
  });
11496
+ this._marker.addEventListener('wheel', (event) => {
11497
+ this.plugin.viewer.scene.canvas.canvas.dispatchEvent(new WheelEvent('wheel', event));
11498
+ });
11496
11499
  }
11497
11500
  if (!this._labelExternal) {
11498
11501
  if (this._label) {
@@ -11508,6 +11511,9 @@ class Annotation extends Marker {
11508
11511
  this._label = labelFragment.firstChild;
11509
11512
  this._container.appendChild(this._label);
11510
11513
  this._label.style.visibility = (this._markerShown && this._labelShown) ? "visible" : "hidden";
11514
+ this._label.addEventListener('wheel', (event) => {
11515
+ this.plugin.viewer.scene.canvas.canvas.dispatchEvent(new WheelEvent('wheel', event));
11516
+ });
11511
11517
  }
11512
11518
  }
11513
11519
 
@@ -11687,8 +11693,8 @@ class Annotation extends Marker {
11687
11693
  }
11688
11694
  }
11689
11695
 
11690
- const tempVec3a$1h = math.vec3();
11691
- const tempVec3b$d = math.vec3();
11696
+ const tempVec3a$1g = math.vec3();
11697
+ const tempVec3b$c = math.vec3();
11692
11698
  const tempVec3c$9 = math.vec3();
11693
11699
 
11694
11700
  /**
@@ -12165,8 +12171,8 @@ class AnnotationsPlugin extends Plugin {
12165
12171
  if (!pickResult.worldPos || !pickResult.worldNormal) {
12166
12172
  this.error("Param 'pickResult' does not have both worldPos and worldNormal");
12167
12173
  } else {
12168
- const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1h);
12169
- const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$d);
12174
+ const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1g);
12175
+ const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$c);
12170
12176
  const offsetWorldPos = math.addVec3(pickResult.worldPos, offsetVec, tempVec3c$9);
12171
12177
  worldPos = offsetWorldPos;
12172
12178
  entity = pickResult.entity;
@@ -14362,7 +14368,7 @@ const MARKER_COLOR = math.vec3([1.0, 0.0, 0.0]);
14362
14368
  const POINT_SIZE = 20;
14363
14369
  const MARKER_SPRITE_CLIPZ_OFFSET = -0.001; // Amount that we offset sprite clip Z coords to raise them from surfaces
14364
14370
 
14365
- const tempVec3a$1g = math.vec3();
14371
+ const tempVec3a$1f = math.vec3();
14366
14372
 
14367
14373
  /**
14368
14374
  * Manages occlusion testing. Private member of a Renderer.
@@ -14699,7 +14705,7 @@ class OcclusionTester {
14699
14705
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
14700
14706
  if (active) {
14701
14707
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
14702
- gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1g));
14708
+ gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f));
14703
14709
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
14704
14710
  }
14705
14711
  }
@@ -18704,7 +18710,7 @@ class CustomProjection extends Component {
18704
18710
  }
18705
18711
 
18706
18712
  const tempVec3$6 = math.vec3();
18707
- const tempVec3b$c = math.vec3();
18713
+ const tempVec3b$b = math.vec3();
18708
18714
  const tempVec3c$8 = math.vec3();
18709
18715
  const tempVec3d$4 = math.vec3();
18710
18716
  const tempVec3e$3 = math.vec3();
@@ -19014,7 +19020,7 @@ class Camera extends Component {
19014
19020
  orbitYaw(angleInc) {
19015
19021
  let lookEyeVec = math.subVec3(this._eye, this._look, tempVec3$6);
19016
19022
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19017
- lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$c);
19023
+ lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$b);
19018
19024
  this.eye = math.addVec3(this._look, lookEyeVec, tempVec3c$8); // Set eye position as 'look' plus 'eye' vector
19019
19025
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4); // Rotate 'up' vector
19020
19026
  }
@@ -19032,7 +19038,7 @@ class Camera extends Component {
19032
19038
  }
19033
19039
  }
19034
19040
  let eye2 = math.subVec3(this._eye, this._look, tempVec3$6);
19035
- const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
19041
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19036
19042
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19037
19043
  eye2 = math.transformPoint3(tempMat, eye2, tempVec3d$4);
19038
19044
  this.up = math.transformPoint3(tempMat, this._up, tempVec3e$3);
@@ -19047,7 +19053,7 @@ class Camera extends Component {
19047
19053
  yaw(angleInc) {
19048
19054
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19049
19055
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19050
- look2 = math.transformPoint3(tempMat, look2, tempVec3b$c);
19056
+ look2 = math.transformPoint3(tempMat, look2, tempVec3b$b);
19051
19057
  this.look = math.addVec3(look2, this._eye, tempVec3c$8);
19052
19058
  if (this._gimbalLock) {
19053
19059
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4);
@@ -19067,7 +19073,7 @@ class Camera extends Component {
19067
19073
  }
19068
19074
  }
19069
19075
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19070
- const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
19076
+ const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19071
19077
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19072
19078
  this.up = math.transformPoint3(tempMat, this._up, tempVec3f$3);
19073
19079
  look2 = math.transformPoint3(tempMat, look2, tempVec3d$4);
@@ -19084,7 +19090,7 @@ class Camera extends Component {
19084
19090
  const vec = [0, 0, 0];
19085
19091
  let v;
19086
19092
  if (pan[0] !== 0) {
19087
- const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$c));
19093
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$b));
19088
19094
  v = math.mulVec3Scalar(left, pan[0]);
19089
19095
  vec[0] += v[0];
19090
19096
  vec[1] += v[1];
@@ -19113,7 +19119,7 @@ class Camera extends Component {
19113
19119
  */
19114
19120
  zoom(delta) {
19115
19121
  const vec = math.subVec3(this._eye, this._look, tempVec3$6);
19116
- const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$c));
19122
+ const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$b));
19117
19123
  const newLenLook = Math.abs(lenLook + delta);
19118
19124
  if (newLenLook < 0.5) {
19119
19125
  return;
@@ -19575,7 +19581,7 @@ class Camera extends Component {
19575
19581
  }
19576
19582
 
19577
19583
  const tempVec4$9 = math.vec4();
19578
- const tempVec3a$1f = math.vec3();
19584
+ const tempVec3a$1e = math.vec3();
19579
19585
 
19580
19586
  /**
19581
19587
  * @private
@@ -19662,7 +19668,7 @@ class TrianglesDataTextureColorRenderer {
19662
19668
  if (active) {
19663
19669
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
19664
19670
  if (origin) {
19665
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f);
19671
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
19666
19672
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
19667
19673
  } else {
19668
19674
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20189,7 +20195,7 @@ class TrianglesDataTextureColorRenderer {
20189
20195
 
20190
20196
  const defaultColor$6 = new Float32Array([1, 1, 1]);
20191
20197
  math.vec4();
20192
- const tempVec3a$1e = math.vec3();
20198
+ const tempVec3a$1d = math.vec3();
20193
20199
 
20194
20200
  /**
20195
20201
  * @private
@@ -20297,7 +20303,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20297
20303
  if (active) {
20298
20304
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20299
20305
  if (origin) {
20300
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
20306
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20301
20307
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20302
20308
  } else {
20303
20309
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20653,7 +20659,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20653
20659
  }
20654
20660
  }
20655
20661
 
20656
- const tempVec3a$1d = math.vec3();
20662
+ const tempVec3a$1c = math.vec3();
20657
20663
  const defaultColor$5 = new Float32Array([0,0,0,1]);
20658
20664
 
20659
20665
  /**
@@ -20753,7 +20759,7 @@ class TrianglesDataTextureEdgesRenderer {
20753
20759
  if (active) {
20754
20760
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20755
20761
  if (origin) {
20756
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20762
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
20757
20763
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20758
20764
  } else {
20759
20765
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21072,7 +21078,7 @@ class TrianglesDataTextureEdgesRenderer {
21072
21078
  }
21073
21079
  }
21074
21080
 
21075
- const tempVec3a$1c = math.vec3();
21081
+ const tempVec3a$1b = math.vec3();
21076
21082
 
21077
21083
  /**
21078
21084
  * @private
@@ -21146,7 +21152,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21146
21152
  if (active) {
21147
21153
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21148
21154
  if (origin) {
21149
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
21155
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21150
21156
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21151
21157
  } else {
21152
21158
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21474,7 +21480,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21474
21480
  }
21475
21481
  }
21476
21482
 
21477
- const tempVec3a$1b = math.vec3();
21483
+ const tempVec3a$1a = math.vec3();
21478
21484
 
21479
21485
  /**
21480
21486
  * @private
@@ -21561,7 +21567,7 @@ class TrianglesDataTexturePickMeshRenderer {
21561
21567
  if (active) {
21562
21568
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21563
21569
  if (origin) {
21564
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21570
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
21565
21571
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21566
21572
  } else {
21567
21573
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21917,7 +21923,7 @@ class TrianglesDataTexturePickMeshRenderer {
21917
21923
  }
21918
21924
  }
21919
21925
 
21920
- const tempVec3a$1a = math.vec3();
21926
+ const tempVec3a$19 = math.vec3();
21921
21927
 
21922
21928
  /**
21923
21929
  * @private
@@ -22009,7 +22015,7 @@ class TrianglesDataTexturePickDepthRenderer {
22009
22015
  if (active) {
22010
22016
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22011
22017
  if (origin) {
22012
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
22018
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22013
22019
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22014
22020
  } else {
22015
22021
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -22368,7 +22374,7 @@ class TrianglesDataTexturePickDepthRenderer {
22368
22374
  }
22369
22375
  }
22370
22376
 
22371
- const tempVec3a$19 = math.vec3();
22377
+ const tempVec3a$18 = math.vec3();
22372
22378
 
22373
22379
  /**
22374
22380
  * @private
@@ -22460,7 +22466,7 @@ class TrianglesDataTexturePickNormalsRenderer {
22460
22466
  if (active) {
22461
22467
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22462
22468
  if (origin) {
22463
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22469
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
22464
22470
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22465
22471
  } else {
22466
22472
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23024,7 +23030,7 @@ class TrianglesDataTextureOcclusionRenderer {
23024
23030
  }
23025
23031
 
23026
23032
  math.vec4();
23027
- const tempVec3a$18 = math.vec3();
23033
+ const tempVec3a$17 = math.vec3();
23028
23034
 
23029
23035
  /**
23030
23036
  * @private
@@ -23109,7 +23115,7 @@ class TrianglesDataTextureDepthRenderer {
23109
23115
  if (active) {
23110
23116
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23111
23117
  if (origin) {
23112
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
23118
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23113
23119
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23114
23120
  } else {
23115
23121
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23480,7 +23486,7 @@ class TrianglesDataTextureDepthRenderer {
23480
23486
  }
23481
23487
  }
23482
23488
 
23483
- const tempVec3a$17 = math.vec3();
23489
+ const tempVec3a$16 = math.vec3();
23484
23490
 
23485
23491
  /**
23486
23492
  * @private
@@ -23543,7 +23549,7 @@ class TrianglesDataTextureNormalsRenderer {
23543
23549
  if (active) {
23544
23550
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23545
23551
  if (origin) {
23546
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23552
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
23547
23553
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23548
23554
  } else {
23549
23555
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23973,7 +23979,7 @@ class TrianglesDataTextureShadowRenderer {
23973
23979
  }
23974
23980
 
23975
23981
  const tempVec4$8 = math.vec4();
23976
- const tempVec3a$16 = math.vec3();
23982
+ const tempVec3a$15 = math.vec3();
23977
23983
 
23978
23984
  const TEXTURE_DECODE_FUNCS$2 = {
23979
23985
  "linear": "linearToLinear",
@@ -24044,7 +24050,7 @@ class TrianglesDataTextureColorQualityRenderer {
24044
24050
  if (active) {
24045
24051
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24046
24052
  if (origin) {
24047
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
24053
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24048
24054
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24049
24055
  } else {
24050
24056
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -24783,7 +24789,7 @@ class TrianglesDataTextureColorQualityRenderer {
24783
24789
  }
24784
24790
  }
24785
24791
 
24786
- const tempVec3a$15 = math.vec3();
24792
+ const tempVec3a$14 = math.vec3();
24787
24793
 
24788
24794
  /**
24789
24795
  * @private
@@ -24897,7 +24903,7 @@ class TrianglesDataTexturePickNormalsFlatRenderer {
24897
24903
  if (active) {
24898
24904
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24899
24905
  if (origin) {
24900
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24906
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$14);
24901
24907
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24902
24908
  } else {
24903
24909
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -27634,8 +27640,8 @@ const tempUint8Array4 = new Uint8Array (4);
27634
27640
 
27635
27641
  const tempFloat32Array3 = new Float32Array (3);
27636
27642
 
27637
- const tempVec3a$14 = math.vec3();
27638
- const tempVec3b$b = math.vec3();
27643
+ const tempVec3a$13 = math.vec3();
27644
+ const tempVec3b$a = math.vec3();
27639
27645
  const tempVec3c$7 = math.vec3();
27640
27646
  const tempVec3d$3 = math.vec3();
27641
27647
  const tempVec3e$2 = math.vec3();
@@ -29260,8 +29266,8 @@ class TrianglesDataTextureLayer {
29260
29266
  const origin = state.origin;
29261
29267
  const offset = portion.offset;
29262
29268
 
29263
- const rtcRayOrigin = tempVec3a$14;
29264
- const rtcRayDir = tempVec3b$b;
29269
+ const rtcRayOrigin = tempVec3a$13;
29270
+ const rtcRayDir = tempVec3b$a;
29265
29271
 
29266
29272
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$7) : worldRayOrigin); // World -> RTC
29267
29273
  rtcRayDir.set(worldRayDir);
@@ -32110,7 +32116,7 @@ class ViewFrustumCullingManager {
32110
32116
 
32111
32117
  WEBGL_INFO.SUPPORTED_EXTENSIONS["ANGLE_instanced_arrays"];
32112
32118
 
32113
- const tempVec3a$13 = math.vec3();
32119
+ const tempVec3a$12 = math.vec3();
32114
32120
  const tempMat4$3 = math.mat4();
32115
32121
 
32116
32122
  const defaultScale$1 = math.vec3([1, 1, 1]);
@@ -33082,7 +33088,7 @@ class DataTextureSceneModel extends Component {
33082
33088
  }
33083
33089
 
33084
33090
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
33085
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$13) : this._origin;
33091
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$12) : this._origin;
33086
33092
 
33087
33093
  switch (primitive) {
33088
33094
  case "triangles":
@@ -33346,7 +33352,7 @@ class DataTextureSceneModel extends Component {
33346
33352
  if (!origin) {
33347
33353
  origin = cfgOrigin;
33348
33354
  } else {
33349
- origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$13);
33355
+ origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$12);
33350
33356
  }
33351
33357
  } else {
33352
33358
  origin = this._origin;
@@ -35317,8 +35323,11 @@ const Renderer = function (scene, options) {
35317
35323
  *
35318
35324
  * Exit snapshot mode using endSnapshot().
35319
35325
  */
35320
- this.beginSnapshot = function () {
35326
+ this.beginSnapshot = function (params={}) {
35321
35327
  const snapshotBuffer = renderBufferManager.getRenderBuffer("snapshot");
35328
+ if (params.width && params.height) {
35329
+ snapshotBuffer.setSize([params.width, params.height]);
35330
+ }
35322
35331
  snapshotBuffer.bind();
35323
35332
  snapshotBuffer.clear();
35324
35333
  snapshotBound = true;
@@ -40629,11 +40638,7 @@ class SAO extends Component {
40629
40638
 
40630
40639
  super(owner, cfg);
40631
40640
 
40632
- const ua = navigator.userAgent.match(/(opera|chrome|safari|firefox|msie|mobile)\/?\s*(\.?\d+(\.\d+)*)/i);
40633
- const isSafari = (ua && ua[1].toLowerCase() === "safari");
40634
-
40635
- this._supported = (!isSafari) &&
40636
- WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
40641
+ this._supported = WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
40637
40642
 
40638
40643
  this.enabled = cfg.enabled;
40639
40644
  this.kernelRadius = cfg.kernelRadius;
@@ -45975,7 +45980,7 @@ function buildFragmentDraw(mesh) {
45975
45980
  * @author xeolabs / https://github.com/xeolabs
45976
45981
  */
45977
45982
 
45978
- const tempVec3a$12 = math.vec3();
45983
+ const tempVec3a$11 = math.vec3();
45979
45984
 
45980
45985
  const ids$2 = new Map$1({});
45981
45986
 
@@ -46074,7 +46079,7 @@ DrawRenderer.prototype.drawMesh = function (frameCtx, mesh) {
46074
46079
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
46075
46080
  if (active) {
46076
46081
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
46077
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$12) : sectionPlane.pos);
46082
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
46078
46083
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
46079
46084
  }
46080
46085
  }
@@ -47212,7 +47217,7 @@ function buildFragment$5(mesh) {
47212
47217
 
47213
47218
  const ids$1 = new Map$1({});
47214
47219
 
47215
- const tempVec3a$11 = math.vec3();
47220
+ const tempVec3a$10 = math.vec3();
47216
47221
 
47217
47222
  /**
47218
47223
  * @private
@@ -47296,7 +47301,7 @@ EmphasisFillRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47296
47301
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47297
47302
  if (active) {
47298
47303
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47299
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
47304
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47300
47305
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47301
47306
  }
47302
47307
  }
@@ -47632,7 +47637,7 @@ function buildFragment$4(mesh) {
47632
47637
 
47633
47638
  const ids = new Map$1({});
47634
47639
 
47635
- const tempVec3a$10 = math.vec3();
47640
+ const tempVec3a$$ = math.vec3();
47636
47641
 
47637
47642
  /**
47638
47643
  * @private
@@ -47715,7 +47720,7 @@ EmphasisEdgesRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47715
47720
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47716
47721
  if (active) {
47717
47722
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47718
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47723
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
47719
47724
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47720
47725
  }
47721
47726
  }
@@ -48010,7 +48015,7 @@ function buildFragment$3(mesh) {
48010
48015
  * @author xeolabs / https://github.com/xeolabs
48011
48016
  */
48012
48017
 
48013
- const tempVec3a$$ = math.vec3();
48018
+ const tempVec3a$_ = math.vec3();
48014
48019
 
48015
48020
  // No ID, because there is exactly one PickMeshRenderer per scene
48016
48021
 
@@ -48094,7 +48099,7 @@ PickMeshRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48094
48099
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48095
48100
  if (active) {
48096
48101
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48097
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
48102
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48098
48103
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48099
48104
  }
48100
48105
  }
@@ -48327,7 +48332,7 @@ function buildFragment$2(mesh) {
48327
48332
  * @author xeolabs / https://github.com/xeolabs
48328
48333
  */
48329
48334
 
48330
- const tempVec3a$_ = math.vec3();
48335
+ const tempVec3a$Z = math.vec3();
48331
48336
 
48332
48337
  /**
48333
48338
  * @private
@@ -48419,7 +48424,7 @@ PickTriangleRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48419
48424
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48420
48425
  if (active) {
48421
48426
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48422
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48427
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48423
48428
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48424
48429
  }
48425
48430
  }
@@ -48656,7 +48661,7 @@ function buildFragment$1(mesh) {
48656
48661
  * @author xeolabs / https://github.com/xeolabs
48657
48662
  */
48658
48663
 
48659
- const tempVec3a$Z = math.vec3();
48664
+ const tempVec3a$Y = math.vec3();
48660
48665
 
48661
48666
  // No ID, because there is exactly one PickMeshRenderer per scene
48662
48667
 
@@ -48764,7 +48769,7 @@ OcclusionRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48764
48769
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48765
48770
  if (active) {
48766
48771
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48767
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48772
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Y) : sectionPlane.pos);
48768
48773
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48769
48774
  }
48770
48775
  }
@@ -61366,8 +61371,8 @@ class LineSet extends Component {
61366
61371
  }
61367
61372
 
61368
61373
  const tempVec3$4 = math.vec3();
61369
- const tempVec3a$Y = math.vec3();
61370
- const tempVec3b$a = math.vec3();
61374
+ const tempVec3a$X = math.vec3();
61375
+ const tempVec3b$9 = math.vec3();
61371
61376
  const tempVec3c$6 = math.vec3();
61372
61377
 
61373
61378
  /**
@@ -62047,8 +62052,8 @@ class BCFViewpointsPlugin extends Plugin {
62047
62052
  bcfViewpoint.bitmaps.forEach(function (e) {
62048
62053
  const bitmap_type = e.bitmap_type || "jpg"; // "jpg" | "png"
62049
62054
  const bitmap_data = e.bitmap_data; // base64
62050
- let location = xyzObjectToArray(e.location, tempVec3a$Y);
62051
- let normal = xyzObjectToArray(e.normal, tempVec3b$a);
62055
+ let location = xyzObjectToArray(e.location, tempVec3a$X);
62056
+ let normal = xyzObjectToArray(e.normal, tempVec3b$9);
62052
62057
  let up = xyzObjectToArray(e.up, tempVec3c$6);
62053
62058
  let height = e.height || 1;
62054
62059
  if (!bitmap_type) {
@@ -63937,7 +63942,7 @@ class SplineCurve extends Curve {
63937
63942
  }
63938
63943
  }
63939
63944
 
63940
- const tempVec3a$X = math.vec3();
63945
+ const tempVec3a$W = math.vec3();
63941
63946
 
63942
63947
  /**
63943
63948
  * @desc Defines a sequence of frames along which a {@link CameraPathAnimation} can animate a {@link Camera}.
@@ -64069,9 +64074,9 @@ class CameraPath extends Component {
64069
64074
  t = t / (this._frames[this._frames.length - 1].t - this._frames[0].t);
64070
64075
  t = t < 0.0 ? 0.0 : (t > 1.0 ? 1.0 : t);
64071
64076
 
64072
- camera.eye = this._eyeCurve.getPoint(t, tempVec3a$X);
64073
- camera.look = this._lookCurve.getPoint(t, tempVec3a$X);
64074
- camera.up = this._upCurve.getPoint(t, tempVec3a$X);
64077
+ camera.eye = this._eyeCurve.getPoint(t, tempVec3a$W);
64078
+ camera.look = this._lookCurve.getPoint(t, tempVec3a$W);
64079
+ camera.up = this._upCurve.getPoint(t, tempVec3a$W);
64075
64080
  }
64076
64081
 
64077
64082
  /**
@@ -65110,7 +65115,7 @@ CameraPathAnimation.PLAYING = 2;
65110
65115
  CameraPathAnimation.PLAYING_TO = 3;
65111
65116
 
65112
65117
  const tempVec3$2 = math.vec3();
65113
- const tempVec3b$9 = math.vec3();
65118
+ const tempVec3b$8 = math.vec3();
65114
65119
  math.vec3();
65115
65120
  const zeroVec$1 = math.vec3([0, -1, 0]);
65116
65121
  const tempQuat = math.vec4([0, 0, 0, 1]);
@@ -65538,7 +65543,7 @@ class ImagePlane extends Component {
65538
65543
  const dist = -math.dotVec3(negDir, tempVec3$2);
65539
65544
 
65540
65545
  math.normalizeVec3(negDir);
65541
- math.mulVec3Scalar(negDir, dist, tempVec3b$9);
65546
+ math.mulVec3Scalar(negDir, dist, tempVec3b$8);
65542
65547
  math.vec3PairToQuaternion(zeroVec$1, dir, tempQuat);
65543
65548
 
65544
65549
  this._node.quaternion = tempQuat;
@@ -66704,8 +66709,8 @@ class SpriteMarker extends Marker {
66704
66709
  }
66705
66710
  }
66706
66711
 
66707
- const tempVec3a$W = math.vec3();
66708
- const tempVec3b$8 = math.vec3();
66712
+ const tempVec3a$V = math.vec3();
66713
+ const tempVec3b$7 = math.vec3();
66709
66714
  const tempMat4a = math.mat4();
66710
66715
 
66711
66716
  /**
@@ -66782,8 +66787,8 @@ function frustumIntersectsAABB3(frustum, aabb) {
66782
66787
 
66783
66788
  let ret = Frustum.INSIDE;
66784
66789
 
66785
- const min = tempVec3a$W;
66786
- const max = tempVec3b$8;
66790
+ const min = tempVec3a$V;
66791
+ const max = tempVec3b$7;
66787
66792
 
66788
66793
  min[0] = aabb[0];
66789
66794
  min[1] = aabb[1];
@@ -69364,7 +69369,7 @@ const RENDER_PASSES = {
69364
69369
  };
69365
69370
 
69366
69371
  const tempVec4$7 = math.vec4();
69367
- const tempVec3a$V = math.vec3();
69372
+ const tempVec3a$U = math.vec3();
69368
69373
 
69369
69374
  /**
69370
69375
  * @private
@@ -69429,7 +69434,7 @@ class TrianglesBatchingColorRenderer {
69429
69434
  if (active) {
69430
69435
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69431
69436
  if (origin) {
69432
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$V);
69437
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69433
69438
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69434
69439
  } else {
69435
69440
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -69857,7 +69862,7 @@ class TrianglesBatchingColorRenderer {
69857
69862
  }
69858
69863
 
69859
69864
  const tempVec4$6 = math.vec4();
69860
- const tempVec3a$U = math.vec3();
69865
+ const tempVec3a$T = math.vec3();
69861
69866
 
69862
69867
  /**
69863
69868
  * @private
@@ -69919,7 +69924,7 @@ class TrianglesBatchingFlatColorRenderer {
69919
69924
  if (active) {
69920
69925
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69921
69926
  if (origin) {
69922
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69927
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
69923
69928
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69924
69929
  } else {
69925
69930
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70336,7 +70341,7 @@ class TrianglesBatchingFlatColorRenderer {
70336
70341
  }
70337
70342
 
70338
70343
  const defaultColor$4 = new Float32Array([1, 1, 1]);
70339
- const tempVec3a$T = math.vec3();
70344
+ const tempVec3a$S = math.vec3();
70340
70345
 
70341
70346
  /**
70342
70347
  * @private
@@ -70420,7 +70425,7 @@ class TrianglesBatchingSilhouetteRenderer {
70420
70425
  if (active) {
70421
70426
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70422
70427
  if (origin) {
70423
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
70428
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70424
70429
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70425
70430
  } else {
70426
70431
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70657,7 +70662,7 @@ class TrianglesBatchingSilhouetteRenderer {
70657
70662
  }
70658
70663
  }
70659
70664
 
70660
- const tempVec3a$S = math.vec3();
70665
+ const tempVec3a$R = math.vec3();
70661
70666
  const defaultColor$3 = new Float32Array([0,0,0,1]);
70662
70667
 
70663
70668
  /**
@@ -70740,7 +70745,7 @@ class TrianglesBatchingEdgesRenderer {
70740
70745
  if (active) {
70741
70746
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70742
70747
  if (origin) {
70743
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70748
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
70744
70749
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70745
70750
  } else {
70746
70751
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70968,7 +70973,7 @@ class TrianglesBatchingEdgesRenderer {
70968
70973
  }
70969
70974
  }
70970
70975
 
70971
- const tempVec3a$R = math.vec3();
70976
+ const tempVec3a$Q = math.vec3();
70972
70977
 
70973
70978
  /**
70974
70979
  * @private
@@ -71028,7 +71033,7 @@ class TrianglesBatchingEdgesColorRenderer {
71028
71033
  if (active) {
71029
71034
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71030
71035
  if (origin) {
71031
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
71036
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71032
71037
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71033
71038
  } else {
71034
71039
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71256,7 +71261,7 @@ class TrianglesBatchingEdgesColorRenderer {
71256
71261
  }
71257
71262
  }
71258
71263
 
71259
- const tempVec3a$Q = math.vec3();
71264
+ const tempVec3a$P = math.vec3();
71260
71265
 
71261
71266
  /**
71262
71267
  * @private
@@ -71322,7 +71327,7 @@ class TrianglesBatchingPickMeshRenderer {
71322
71327
  if (active) {
71323
71328
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71324
71329
  if (origin) {
71325
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71330
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71326
71331
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71327
71332
  } else {
71328
71333
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71552,7 +71557,7 @@ class TrianglesBatchingPickMeshRenderer {
71552
71557
  }
71553
71558
  }
71554
71559
 
71555
- const tempVec3a$P = math.vec3();
71560
+ const tempVec3a$O = math.vec3();
71556
71561
 
71557
71562
  /**
71558
71563
  * @private
@@ -71623,7 +71628,7 @@ class TrianglesBatchingPickDepthRenderer {
71623
71628
  if (active) {
71624
71629
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71625
71630
  if (origin) {
71626
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71631
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71627
71632
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71628
71633
  } else {
71629
71634
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71861,7 +71866,7 @@ class TrianglesBatchingPickDepthRenderer {
71861
71866
  }
71862
71867
  }
71863
71868
 
71864
- const tempVec3a$O = math.vec3();
71869
+ const tempVec3a$N = math.vec3();
71865
71870
 
71866
71871
  /**
71867
71872
  * @private
@@ -71929,7 +71934,7 @@ class TrianglesBatchingPickNormalsRenderer {
71929
71934
  if (active) {
71930
71935
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71931
71936
  if (origin) {
71932
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71937
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
71933
71938
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71934
71939
  } else {
71935
71940
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72154,7 +72159,7 @@ class TrianglesBatchingPickNormalsRenderer {
72154
72159
  }
72155
72160
  }
72156
72161
 
72157
- const tempVec3a$N = math.vec3();
72162
+ const tempVec3a$M = math.vec3();
72158
72163
 
72159
72164
  /**
72160
72165
  * @private
@@ -72214,7 +72219,7 @@ class TrianglesBatchingOcclusionRenderer {
72214
72219
  if (active) {
72215
72220
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72216
72221
  if (origin) {
72217
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
72222
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72218
72223
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72219
72224
  } else {
72220
72225
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72437,7 +72442,7 @@ class TrianglesBatchingOcclusionRenderer {
72437
72442
  }
72438
72443
  }
72439
72444
 
72440
- const tempVec3a$M = math.vec3();
72445
+ const tempVec3a$L = math.vec3();
72441
72446
 
72442
72447
  /**
72443
72448
  * @private
@@ -72497,7 +72502,7 @@ class TrianglesBatchingDepthRenderer {
72497
72502
  if (active) {
72498
72503
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72499
72504
  if (origin) {
72500
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72505
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72501
72506
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72502
72507
  } else {
72503
72508
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72721,7 +72726,7 @@ class TrianglesBatchingDepthRenderer {
72721
72726
  }
72722
72727
  }
72723
72728
 
72724
- const tempVec3a$L = math.vec3();
72729
+ const tempVec3a$K = math.vec3();
72725
72730
 
72726
72731
  /**
72727
72732
  * @private
@@ -72784,7 +72789,7 @@ class TrianglesBatchingNormalsRenderer {
72784
72789
  if (active) {
72785
72790
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72786
72791
  if (origin) {
72787
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72792
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
72788
72793
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72789
72794
  } else {
72790
72795
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73024,7 +73029,7 @@ class TrianglesBatchingNormalsRenderer {
73024
73029
  }
73025
73030
  }
73026
73031
 
73027
- const tempVec3a$K = math.vec3();
73032
+ const tempVec3a$J = math.vec3();
73028
73033
 
73029
73034
  /**
73030
73035
  * Renders BatchingLayer fragment depths to a shadow map.
@@ -73093,7 +73098,7 @@ class TrianglesBatchingShadowRenderer {
73093
73098
  if (active) {
73094
73099
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73095
73100
  if (origin) {
73096
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
73101
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73097
73102
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73098
73103
  } else {
73099
73104
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73265,7 +73270,7 @@ class TrianglesBatchingShadowRenderer {
73265
73270
  }
73266
73271
 
73267
73272
  const tempVec4$5 = math.vec4();
73268
- const tempVec3a$J = math.vec3();
73273
+ const tempVec3a$I = math.vec3();
73269
73274
 
73270
73275
  // const TEXTURE_DECODE_FUNCS = {};
73271
73276
  // TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -73338,7 +73343,7 @@ class TrianglesBatchingPBRRenderer {
73338
73343
  if (active) {
73339
73344
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73340
73345
  if (origin) {
73341
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73346
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
73342
73347
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73343
73348
  } else {
73344
73349
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74143,7 +74148,7 @@ class TrianglesBatchingPBRRenderer {
74143
74148
  }
74144
74149
  }
74145
74150
 
74146
- const tempVec3a$I = math.vec3();
74151
+ const tempVec3a$H = math.vec3();
74147
74152
 
74148
74153
  /**
74149
74154
  * @private
@@ -74210,7 +74215,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74210
74215
  if (active) {
74211
74216
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74212
74217
  if (origin) {
74213
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
74218
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74214
74219
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74215
74220
  } else {
74216
74221
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74420,7 +74425,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74420
74425
  }
74421
74426
 
74422
74427
  const tempVec4$4 = math.vec4();
74423
- const tempVec3a$H = math.vec3();
74428
+ const tempVec3a$G = math.vec3();
74424
74429
 
74425
74430
  /**
74426
74431
  * @private
@@ -74485,7 +74490,7 @@ class TrianglesBatchingColorTextureRenderer {
74485
74490
  if (active) {
74486
74491
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74487
74492
  if (origin) {
74488
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74493
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$G);
74489
74494
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74490
74495
  } else {
74491
74496
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -75491,8 +75496,8 @@ const tempVec4b$a = math.vec4([0, 0, 0, 1]);
75491
75496
  const tempVec4c$7 = math.vec4([0, 0, 0, 1]);
75492
75497
  const tempOBB3$2 = math.OBB3();
75493
75498
 
75494
- const tempVec3a$G = math.vec3();
75495
- const tempVec3b$7 = math.vec3();
75499
+ const tempVec3a$F = math.vec3();
75500
+ const tempVec3b$6 = math.vec3();
75496
75501
  const tempVec3c$5 = math.vec3();
75497
75502
  const tempVec3d$2 = math.vec3();
75498
75503
  const tempVec3e$1 = math.vec3();
@@ -76671,8 +76676,8 @@ class TrianglesBatchingLayer {
76671
76676
  const origin = state.origin;
76672
76677
  const offset = portion.offset;
76673
76678
 
76674
- const rtcRayOrigin = tempVec3a$G;
76675
- const rtcRayDir = tempVec3b$7;
76679
+ const rtcRayOrigin = tempVec3a$F;
76680
+ const rtcRayDir = tempVec3b$6;
76676
76681
 
76677
76682
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$5) : worldRayOrigin); // World -> RTC
76678
76683
  rtcRayDir.set(worldRayDir);
@@ -76795,7 +76800,7 @@ class TrianglesBatchingLayer {
76795
76800
  }
76796
76801
 
76797
76802
  const tempVec4$3 = math.vec4();
76798
- const tempVec3a$F = math.vec3();
76803
+ const tempVec3a$E = math.vec3();
76799
76804
 
76800
76805
  /**
76801
76806
  * @private
@@ -76861,7 +76866,7 @@ class TrianglesInstancingColorRenderer {
76861
76866
  if (active) {
76862
76867
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
76863
76868
  if (origin) {
76864
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$F);
76869
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
76865
76870
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
76866
76871
  } else {
76867
76872
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77338,7 +77343,7 @@ class TrianglesInstancingColorRenderer {
77338
77343
  }
77339
77344
 
77340
77345
  const tempVec4$2 = math.vec4();
77341
- const tempVec3a$E = math.vec3();
77346
+ const tempVec3a$D = math.vec3();
77342
77347
 
77343
77348
  /**
77344
77349
  * @private
@@ -77400,7 +77405,7 @@ class TrianglesInstancingFlatColorRenderer {
77400
77405
  if (active) {
77401
77406
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77402
77407
  if (origin) {
77403
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
77408
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77404
77409
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77405
77410
  } else {
77406
77411
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77847,7 +77852,7 @@ class TrianglesInstancingFlatColorRenderer {
77847
77852
  }
77848
77853
  }
77849
77854
 
77850
- const tempVec3a$D = math.vec3();
77855
+ const tempVec3a$C = math.vec3();
77851
77856
 
77852
77857
  /**
77853
77858
  * @private
@@ -77930,7 +77935,7 @@ class TrianglesInstancingSilhouetteRenderer {
77930
77935
  if (active) {
77931
77936
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77932
77937
  if (origin) {
77933
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77938
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
77934
77939
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77935
77940
  } else {
77936
77941
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78202,7 +78207,7 @@ class TrianglesInstancingSilhouetteRenderer {
78202
78207
  }
78203
78208
  }
78204
78209
 
78205
- const tempVec3a$C = math.vec3();
78210
+ const tempVec3a$B = math.vec3();
78206
78211
  const defaultColor$2 = new Float32Array([0,0,0,1]);
78207
78212
 
78208
78213
  /**
@@ -78286,7 +78291,7 @@ class TrianglesInstancingEdgesRenderer {
78286
78291
  if (active) {
78287
78292
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78288
78293
  if (origin) {
78289
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
78294
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78290
78295
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78291
78296
  } else {
78292
78297
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78547,7 +78552,7 @@ class TrianglesInstancingEdgesRenderer {
78547
78552
  }
78548
78553
  }
78549
78554
 
78550
- const tempVec3a$B = math.vec3();
78555
+ const tempVec3a$A = math.vec3();
78551
78556
 
78552
78557
  /**
78553
78558
  * @private
@@ -78608,7 +78613,7 @@ class TrianglesInstancingEdgesColorRenderer {
78608
78613
  if (active) {
78609
78614
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78610
78615
  if (origin) {
78611
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78616
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78612
78617
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78613
78618
  } else {
78614
78619
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78874,7 +78879,7 @@ class TrianglesInstancingEdgesColorRenderer {
78874
78879
  }
78875
78880
  }
78876
78881
 
78877
- const tempVec3a$A = math.vec3();
78882
+ const tempVec3a$z = math.vec3();
78878
78883
 
78879
78884
  /**
78880
78885
  * @private
@@ -78977,7 +78982,7 @@ class TrianglesInstancingPickMeshRenderer {
78977
78982
  if (active) {
78978
78983
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78979
78984
  if (origin) {
78980
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78985
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
78981
78986
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78982
78987
  } else {
78983
78988
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79212,7 +79217,7 @@ class TrianglesInstancingPickMeshRenderer {
79212
79217
  }
79213
79218
  }
79214
79219
 
79215
- const tempVec3a$z = math.vec3();
79220
+ const tempVec3a$y = math.vec3();
79216
79221
 
79217
79222
  /**
79218
79223
  * @private
@@ -79289,7 +79294,7 @@ class TrianglesInstancingPickDepthRenderer {
79289
79294
  if (active) {
79290
79295
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79291
79296
  if (origin) {
79292
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
79297
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79293
79298
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79294
79299
  } else {
79295
79300
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79557,7 +79562,7 @@ class TrianglesInstancingPickDepthRenderer {
79557
79562
  }
79558
79563
  }
79559
79564
 
79560
- const tempVec3a$y = math.vec3();
79565
+ const tempVec3a$x = math.vec3();
79561
79566
 
79562
79567
  /**
79563
79568
  * @private
@@ -79634,7 +79639,7 @@ class TrianglesInstancingPickNormalsRenderer {
79634
79639
  if (active) {
79635
79640
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79636
79641
  if (origin) {
79637
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79642
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79638
79643
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79639
79644
  } else {
79640
79645
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79911,7 +79916,7 @@ class TrianglesInstancingPickNormalsRenderer {
79911
79916
  }
79912
79917
  }
79913
79918
 
79914
- const tempVec3a$x = math.vec3();
79919
+ const tempVec3a$w = math.vec3();
79915
79920
 
79916
79921
  /**
79917
79922
  * @private
@@ -79972,7 +79977,7 @@ class TrianglesInstancingOcclusionRenderer {
79972
79977
  if (active) {
79973
79978
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79974
79979
  if (origin) {
79975
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79980
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
79976
79981
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79977
79982
  } else {
79978
79983
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80230,7 +80235,7 @@ class TrianglesInstancingOcclusionRenderer {
80230
80235
  }
80231
80236
  }
80232
80237
 
80233
- const tempVec3a$w = math.vec3();
80238
+ const tempVec3a$v = math.vec3();
80234
80239
 
80235
80240
  /**
80236
80241
  * @private
@@ -80291,7 +80296,7 @@ class TrianglesInstancingDepthRenderer {
80291
80296
  if (active) {
80292
80297
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80293
80298
  if (origin) {
80294
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
80299
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80295
80300
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80296
80301
  } else {
80297
80302
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80541,7 +80546,7 @@ class TrianglesInstancingDepthRenderer {
80541
80546
  }
80542
80547
  }
80543
80548
 
80544
- const tempVec3a$v = math.vec3();
80549
+ const tempVec3a$u = math.vec3();
80545
80550
 
80546
80551
  /**
80547
80552
  * @private
@@ -80605,7 +80610,7 @@ class TrianglesInstancingNormalsRenderer {
80605
80610
  if (active) {
80606
80611
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80607
80612
  if (origin) {
80608
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80613
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80609
80614
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80610
80615
  } else {
80611
80616
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80885,7 +80890,7 @@ class TrianglesInstancingNormalsRenderer {
80885
80890
  }
80886
80891
  }
80887
80892
 
80888
- const tempVec3a$u = math.vec3();
80893
+ const tempVec3a$t = math.vec3();
80889
80894
 
80890
80895
  /**
80891
80896
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -80972,7 +80977,7 @@ class TrianglesInstancingShadowRenderer {
80972
80977
  if (active) {
80973
80978
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80974
80979
  if (origin) {
80975
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80980
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
80976
80981
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80977
80982
  } else {
80978
80983
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -81165,7 +81170,7 @@ class TrianglesInstancingShadowRenderer {
81165
81170
  }
81166
81171
 
81167
81172
  const tempVec4$1 = math.vec4();
81168
- const tempVec3a$t = math.vec3();
81173
+ const tempVec3a$s = math.vec3();
81169
81174
 
81170
81175
  const TEXTURE_DECODE_FUNCS = {};
81171
81176
  TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -81239,7 +81244,7 @@ class TrianglesInstancingPBRRenderer {
81239
81244
  if (active) {
81240
81245
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
81241
81246
  if (origin) {
81242
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
81247
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
81243
81248
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
81244
81249
  } else {
81245
81250
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82075,7 +82080,7 @@ class TrianglesInstancingPBRRenderer {
82075
82080
  }
82076
82081
  }
82077
82082
 
82078
- const tempVec3a$s = math.vec3();
82083
+ const tempVec3a$r = math.vec3();
82079
82084
 
82080
82085
  /**
82081
82086
  * @private
@@ -82150,7 +82155,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82150
82155
  if (active) {
82151
82156
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82152
82157
  if (origin) {
82153
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
82158
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82154
82159
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82155
82160
  } else {
82156
82161
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82390,7 +82395,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82390
82395
  }
82391
82396
 
82392
82397
  const tempVec4 = math.vec4();
82393
- const tempVec3a$r = math.vec3();
82398
+ const tempVec3a$q = math.vec3();
82394
82399
 
82395
82400
  /**
82396
82401
  * @private
@@ -82455,7 +82460,7 @@ class TrianglesInstancingColorTextureRenderer {
82455
82460
  if (active) {
82456
82461
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82457
82462
  if (origin) {
82458
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82463
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$q);
82459
82464
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82460
82465
  } else {
82461
82466
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -83266,8 +83271,8 @@ const tempVec4b$9 = math.vec4([0, 0, 0, 1]);
83266
83271
  const tempVec4c$6 = math.vec4([0, 0, 0, 1]);
83267
83272
  const tempVec3fa$2 = new Float32Array(3);
83268
83273
 
83269
- const tempVec3a$q = math.vec3();
83270
- const tempVec3b$6 = math.vec3();
83274
+ const tempVec3a$p = math.vec3();
83275
+ const tempVec3b$5 = math.vec3();
83271
83276
  const tempVec3c$4 = math.vec3();
83272
83277
  const tempVec3d$1 = math.vec3();
83273
83278
  const tempVec3e = math.vec3();
@@ -84195,8 +84200,8 @@ class TrianglesInstancingLayer {
84195
84200
  const origin = state.origin;
84196
84201
  const offset = portion.offset;
84197
84202
 
84198
- const rtcRayOrigin = tempVec3a$q;
84199
- const rtcRayDir = tempVec3b$6;
84203
+ const rtcRayOrigin = tempVec3a$p;
84204
+ const rtcRayDir = tempVec3b$5;
84200
84205
 
84201
84206
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$4) : worldRayOrigin); // World -> RTC
84202
84207
  rtcRayDir.set(worldRayDir);
@@ -84329,7 +84334,7 @@ class TrianglesInstancingLayer {
84329
84334
  }
84330
84335
  }
84331
84336
 
84332
- const tempVec3a$p = math.vec3();
84337
+ const tempVec3a$o = math.vec3();
84333
84338
 
84334
84339
  /**
84335
84340
  * @private
@@ -84392,7 +84397,7 @@ class LinesBatchingColorRenderer {
84392
84397
  if (active) {
84393
84398
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84394
84399
  if (origin) {
84395
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$p);
84400
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84396
84401
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84397
84402
  } else {
84398
84403
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -84612,7 +84617,7 @@ class LinesBatchingColorRenderer {
84612
84617
  }
84613
84618
 
84614
84619
  const defaultColor$1 = new Float32Array([1, 1, 1]);
84615
- const tempVec3a$o = math.vec3();
84620
+ const tempVec3a$n = math.vec3();
84616
84621
 
84617
84622
  /**
84618
84623
  * @private
@@ -84699,7 +84704,7 @@ class LinesBatchingSilhouetteRenderer {
84699
84704
  if (active) {
84700
84705
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84701
84706
  if (origin) {
84702
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84707
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
84703
84708
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84704
84709
  } else {
84705
84710
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -85796,7 +85801,7 @@ class LinesBatchingLayer {
85796
85801
  }
85797
85802
  }
85798
85803
 
85799
- const tempVec3a$n = math.vec3();
85804
+ const tempVec3a$m = math.vec3();
85800
85805
 
85801
85806
  /**
85802
85807
  * @private
@@ -85859,7 +85864,7 @@ class LinesInstancingColorRenderer {
85859
85864
  if (active) {
85860
85865
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
85861
85866
  if (origin) {
85862
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
85867
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
85863
85868
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
85864
85869
  } else {
85865
85870
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -86141,7 +86146,7 @@ class LinesInstancingColorRenderer {
86141
86146
  }
86142
86147
  }
86143
86148
 
86144
- const tempVec3a$m = math.vec3();
86149
+ const tempVec3a$l = math.vec3();
86145
86150
 
86146
86151
  /**
86147
86152
  * @private
@@ -86226,7 +86231,7 @@ class LinesInstancingSilhouetteRenderer {
86226
86231
  if (active) {
86227
86232
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
86228
86233
  if (origin) {
86229
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
86234
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
86230
86235
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
86231
86236
  } else {
86232
86237
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87208,7 +87213,7 @@ class LinesInstancingLayer {
87208
87213
  }
87209
87214
  }
87210
87215
 
87211
- const tempVec3a$l = math.vec3();
87216
+ const tempVec3a$k = math.vec3();
87212
87217
 
87213
87218
  /**
87214
87219
  * @private
@@ -87269,7 +87274,7 @@ class PointsBatchingColorRenderer {
87269
87274
  if (active) {
87270
87275
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87271
87276
  if (origin) {
87272
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
87277
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87273
87278
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87274
87279
  } else {
87275
87280
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87554,7 +87559,7 @@ class PointsBatchingColorRenderer {
87554
87559
  }
87555
87560
 
87556
87561
  const defaultColor = new Float32Array([1, 1, 1]);
87557
- const tempVec3a$k = math.vec3();
87562
+ const tempVec3a$j = math.vec3();
87558
87563
 
87559
87564
  /**
87560
87565
  * @private
@@ -87639,7 +87644,7 @@ class PointsBatchingSilhouetteRenderer {
87639
87644
  if (active) {
87640
87645
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87641
87646
  if (origin) {
87642
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87647
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87643
87648
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87644
87649
  } else {
87645
87650
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87883,7 +87888,7 @@ class PointsBatchingSilhouetteRenderer {
87883
87888
  }
87884
87889
  }
87885
87890
 
87886
- const tempVec3a$j = math.vec3();
87891
+ const tempVec3a$i = math.vec3();
87887
87892
 
87888
87893
  /**
87889
87894
  * @private
@@ -87950,7 +87955,7 @@ class PointsBatchingPickMeshRenderer {
87950
87955
  if (active) {
87951
87956
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87952
87957
  if (origin) {
87953
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87958
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
87954
87959
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87955
87960
  } else {
87956
87961
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88195,7 +88200,7 @@ class PointsBatchingPickMeshRenderer {
88195
88200
  }
88196
88201
  }
88197
88202
 
88198
- const tempVec3a$i = math.vec3();
88203
+ const tempVec3a$h = math.vec3();
88199
88204
 
88200
88205
  /**
88201
88206
  * @private
@@ -88267,7 +88272,7 @@ class PointsBatchingPickDepthRenderer {
88267
88272
  if (active) {
88268
88273
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88269
88274
  if (origin) {
88270
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
88275
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88271
88276
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88272
88277
  } else {
88273
88278
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88518,7 +88523,7 @@ class PointsBatchingPickDepthRenderer {
88518
88523
  }
88519
88524
  }
88520
88525
 
88521
- const tempVec3a$h = math.vec3();
88526
+ const tempVec3a$g = math.vec3();
88522
88527
 
88523
88528
  /**
88524
88529
  * @private
@@ -88579,7 +88584,7 @@ class PointsBatchingOcclusionRenderer {
88579
88584
  if (active) {
88580
88585
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88581
88586
  if (origin) {
88582
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88587
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$g);
88583
88588
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88584
88589
  } else {
88585
88590
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88945,8 +88950,8 @@ class PointsBatchingBuffer {
88945
88950
  }
88946
88951
  }
88947
88952
 
88948
- const tempVec3a$g = math.vec4();
88949
- const tempVec3b$5 = math.vec4();
88953
+ const tempVec3a$f = math.vec4();
88954
+ const tempVec3b$4 = math.vec4();
88950
88955
  const tempVec4a$6 = math.vec4([0, 0, 0, 1]);
88951
88956
  const tempVec4b$6 = math.vec4([0, 0, 0, 1]);
88952
88957
  const tempVec4c$3 = math.vec4([0, 0, 0, 1]);
@@ -89098,8 +89103,8 @@ class PointsBatchingLayer {
89098
89103
 
89099
89104
  const bounds = geometryCompressionUtils.getPositionsBounds(positionsCompressed);
89100
89105
 
89101
- const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$g);
89102
- const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$5);
89106
+ const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$f);
89107
+ const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$4);
89103
89108
 
89104
89109
  worldAABB[0] = min[0];
89105
89110
  worldAABB[1] = min[1];
@@ -89737,7 +89742,7 @@ class PointsBatchingLayer {
89737
89742
  }
89738
89743
  }
89739
89744
 
89740
- const tempVec3a$f = math.vec3();
89745
+ const tempVec3a$e = math.vec3();
89741
89746
 
89742
89747
  /**
89743
89748
  * @private
@@ -89806,7 +89811,7 @@ class PointsInstancingColorRenderer {
89806
89811
  if (active) {
89807
89812
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
89808
89813
  if (origin) {
89809
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$f);
89814
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
89810
89815
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
89811
89816
  } else {
89812
89817
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90116,7 +90121,7 @@ class PointsInstancingColorRenderer {
90116
90121
  }
90117
90122
  }
90118
90123
 
90119
- const tempVec3a$e = math.vec3();
90124
+ const tempVec3a$d = math.vec3();
90120
90125
 
90121
90126
  /**
90122
90127
  * @private
@@ -90200,7 +90205,7 @@ class PointsInstancingSilhouetteRenderer {
90200
90205
  if (active) {
90201
90206
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90202
90207
  if (origin) {
90203
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
90208
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90204
90209
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90205
90210
  } else {
90206
90211
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90481,7 +90486,7 @@ class PointsInstancingSilhouetteRenderer {
90481
90486
  }
90482
90487
  }
90483
90488
 
90484
- const tempVec3a$d = math.vec3();
90489
+ const tempVec3a$c = math.vec3();
90485
90490
 
90486
90491
  /**
90487
90492
  * @private
@@ -90587,7 +90592,7 @@ class PointsInstancingPickMeshRenderer {
90587
90592
  if (active) {
90588
90593
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90589
90594
  if (origin) {
90590
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90595
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90591
90596
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90592
90597
  } else {
90593
90598
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90838,7 +90843,7 @@ class PointsInstancingPickMeshRenderer {
90838
90843
  }
90839
90844
  }
90840
90845
 
90841
- const tempVec3a$c = math.vec3();
90846
+ const tempVec3a$b = math.vec3();
90842
90847
 
90843
90848
  /**
90844
90849
  * @private
@@ -90916,7 +90921,7 @@ class PointsInstancingPickDepthRenderer {
90916
90921
  if (active) {
90917
90922
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90918
90923
  if (origin) {
90919
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90924
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
90920
90925
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90921
90926
  } else {
90922
90927
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91204,7 +91209,7 @@ class PointsInstancingPickDepthRenderer {
91204
91209
  }
91205
91210
  }
91206
91211
 
91207
- const tempVec3a$b = math.vec3();
91212
+ const tempVec3a$a = math.vec3();
91208
91213
 
91209
91214
  /**
91210
91215
  * @private
@@ -91266,7 +91271,7 @@ class PointsInstancingOcclusionRenderer {
91266
91271
  if (active) {
91267
91272
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91268
91273
  if (origin) {
91269
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
91274
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91270
91275
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91271
91276
  } else {
91272
91277
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91555,7 +91560,7 @@ class PointsInstancingOcclusionRenderer {
91555
91560
  }
91556
91561
  }
91557
91562
 
91558
- const tempVec3a$a = math.vec3();
91563
+ const tempVec3a$9 = math.vec3();
91559
91564
 
91560
91565
  /**
91561
91566
  * @private
@@ -91617,7 +91622,7 @@ class PointsInstancingDepthRenderer {
91617
91622
  if (active) {
91618
91623
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91619
91624
  if (origin) {
91620
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91625
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
91621
91626
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91622
91627
  } else {
91623
91628
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91901,7 +91906,7 @@ class PointsInstancingDepthRenderer {
91901
91906
  }
91902
91907
  }
91903
91908
 
91904
- const tempVec3a$9 = math.vec3();
91909
+ const tempVec3a$8 = math.vec3();
91905
91910
 
91906
91911
  /**
91907
91912
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -91988,7 +91993,7 @@ class PointsInstancingShadowRenderer {
91988
91993
  if (active) {
91989
91994
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91990
91995
  if (origin) {
91991
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
91996
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$8);
91992
91997
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91993
91998
  } else {
91994
91999
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -94329,7 +94334,7 @@ function getKTX2TextureTranscoder(viewer) {
94329
94334
  return transcoder;
94330
94335
  }
94331
94336
 
94332
- const tempVec3a$8 = math.vec3();
94337
+ const tempVec3a$7 = math.vec3();
94333
94338
  const tempMat4$1 = math.mat4();
94334
94339
 
94335
94340
  const defaultScale = math.vec3([1, 1, 1]);
@@ -96710,7 +96715,7 @@ class VBOSceneModel extends Component {
96710
96715
  }
96711
96716
 
96712
96717
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
96713
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$8) : this._origin;
96718
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$7) : this._origin;
96714
96719
 
96715
96720
  const instancingLayer = this._getInstancingLayer(origin, textureSetId, geometryId);
96716
96721
 
@@ -96772,7 +96777,7 @@ class VBOSceneModel extends Component {
96772
96777
 
96773
96778
  let indices = cfg.indices;
96774
96779
  let edgeIndices = cfg.edgeIndices;
96775
- let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$8) : this._origin;
96780
+ let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$7) : this._origin;
96776
96781
  let positions = cfg.positions;
96777
96782
 
96778
96783
  if (positions) {
@@ -97786,8 +97791,8 @@ class TextureTranscoder {
97786
97791
  const screenPos = math.vec4();
97787
97792
  const viewPos = math.vec4();
97788
97793
 
97789
- const tempVec3a$7 = math.vec3();
97790
- const tempVec3b$4 = math.vec3();
97794
+ const tempVec3a$6 = math.vec3();
97795
+ const tempVec3b$3 = math.vec3();
97791
97796
  const tempVec3c$3 = math.vec3();
97792
97797
 
97793
97798
  const tempVec4a$4 = math.vec4();
@@ -97821,7 +97826,7 @@ class PanController {
97821
97826
  const camera = this._scene.camera;
97822
97827
 
97823
97828
  if (optionalTargetWorldPos) {
97824
- const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97829
+ const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97825
97830
  const eyeWorldPosDist = math.lenVec3(eyeToWorldPosVec);
97826
97831
  dolliedThroughSurface = (eyeWorldPosDist < dollyDelta);
97827
97832
  }
@@ -97845,9 +97850,9 @@ class PanController {
97845
97850
  // suddenly a lot closer than the point we pivoted about on the surface of the last object
97846
97851
  // that we click-drag-pivoted on.
97847
97852
 
97848
- const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97853
+ const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97849
97854
  const lenEyeTargetVec = math.lenVec3(eyeTargetVec);
97850
- const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$4)), lenEyeTargetVec);
97855
+ const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$3)), lenEyeTargetVec);
97851
97856
  camera.look = [camera.eye[0] + eyeLookVec[0], camera.eye[1] + eyeLookVec[1], camera.eye[2] + eyeLookVec[2]];
97852
97857
  }
97853
97858
 
@@ -97864,7 +97869,7 @@ class PanController {
97864
97869
 
97865
97870
  const worldPos2 = this._unproject(targetCanvasPos, tempVec4b$4);
97866
97871
  const offset = math.subVec3(worldPos2, worldPos1, tempVec4c$1);
97867
- const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$7)), -dollyDelta, tempVec3b$4);
97872
+ const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6)), -dollyDelta, tempVec3b$3);
97868
97873
  const moveVec = math.addVec3(offset, eyeLookMoveVec, tempVec3c$3);
97869
97874
 
97870
97875
  camera.eye = [camera.eye[0] - moveVec[0], camera.eye[1] - moveVec[1], camera.eye[2] - moveVec[2]];
@@ -97892,8 +97897,8 @@ class PanController {
97892
97897
  }
97893
97898
  }
97894
97899
 
97895
- const tempVec3a$6 = math.vec3();
97896
- const tempVec3b$3 = math.vec3();
97900
+ const tempVec3a$5 = math.vec3();
97901
+ const tempVec3b$2 = math.vec3();
97897
97902
  const tempVec3c$2 = math.vec3();
97898
97903
 
97899
97904
  const tempVec4a$3 = math.vec4();
@@ -98025,10 +98030,10 @@ class PivotController {
98025
98030
 
98026
98031
  _cameraLookingDownwards() { // Returns true if angle between camera viewing direction and World-space "up" axis is too small
98027
98032
  const camera = this._scene.camera;
98028
- const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6));
98029
- const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$3);
98033
+ const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$5));
98034
+ const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$2);
98030
98035
  let rightAxisLen = math.sqLenVec3(rightAxis);
98031
- return (Math.abs(rightAxisLen) <= 0.1);
98036
+ return (rightAxisLen <= 0.0001);
98032
98037
  }
98033
98038
 
98034
98039
  /**
@@ -98066,8 +98071,8 @@ class PivotController {
98066
98071
  const screenZ = math.dotVec4(D, Pt3) / math.dotVec4(D, Pt4);
98067
98072
  const worldPos = tempVec4a$3;
98068
98073
  camera.project.unproject(canvasPos, screenZ, tempVec4b$3, tempVec4c, worldPos);
98069
- const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$6));
98070
- const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$3), tempVec3c$2);
98074
+ const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$5));
98075
+ const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$2), tempVec3c$2);
98071
98076
  this.setPivotPos(posOnSphere);
98072
98077
  }
98073
98078
 
@@ -98089,10 +98094,6 @@ class PivotController {
98089
98094
  if (!this._pivoting) {
98090
98095
  return;
98091
98096
  }
98092
- if (this._cameraLookingDownwards()) {
98093
- this._pivoting = false;
98094
- return;
98095
- }
98096
98097
  if (yawInc === 0 && pitchInc === 0) {
98097
98098
  return;
98098
98099
  }
@@ -98702,8 +98703,8 @@ class MousePanRotateDollyHandler {
98702
98703
  }
98703
98704
 
98704
98705
  const center = math.vec3();
98705
- const tempVec3a$5 = math.vec3();
98706
- const tempVec3b$2 = math.vec3();
98706
+ const tempVec3a$4 = math.vec3();
98707
+ const tempVec3b$1 = math.vec3();
98707
98708
  const tempVec3c$1 = math.vec3();
98708
98709
  const tempVec3d = math.vec3();
98709
98710
 
@@ -98757,39 +98758,39 @@ class KeyboardAxisViewHandler {
98757
98758
 
98758
98759
  if (axisViewRight) {
98759
98760
 
98760
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$5), tempVec3d));
98761
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$4), tempVec3d));
98761
98762
  tempCameraTarget.look.set(center);
98762
98763
  tempCameraTarget.up.set(camera.worldUp);
98763
98764
 
98764
98765
  } else if (axisViewBack) {
98765
98766
 
98766
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$5), tempVec3d));
98767
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$4), tempVec3d));
98767
98768
  tempCameraTarget.look.set(center);
98768
98769
  tempCameraTarget.up.set(camera.worldUp);
98769
98770
 
98770
98771
  } else if (axisViewLeft) {
98771
98772
 
98772
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$5), tempVec3d));
98773
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$4), tempVec3d));
98773
98774
  tempCameraTarget.look.set(center);
98774
98775
  tempCameraTarget.up.set(camera.worldUp);
98775
98776
 
98776
98777
  } else if (axisViewFront) {
98777
98778
 
98778
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$5), tempVec3d));
98779
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$4), tempVec3d));
98779
98780
  tempCameraTarget.look.set(center);
98780
98781
  tempCameraTarget.up.set(camera.worldUp);
98781
98782
 
98782
98783
  } else if (axisViewTop) {
98783
98784
 
98784
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$5), tempVec3d));
98785
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$4), tempVec3d));
98785
98786
  tempCameraTarget.look.set(center);
98786
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$2), tempVec3c$1));
98787
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$1), tempVec3c$1));
98787
98788
 
98788
98789
  } else if (axisViewBottom) {
98789
98790
 
98790
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$5), tempVec3d));
98791
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$4), tempVec3d));
98791
98792
  tempCameraTarget.look.set(center);
98792
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$2)));
98793
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$1)));
98793
98794
  }
98794
98795
 
98795
98796
  if ((!configs.firstPerson) && configs.followPointer) {
@@ -99363,8 +99364,6 @@ class KeyboardPanRotateDollyHandler {
99363
99364
  const SCALE_DOLLY_EACH_FRAME = 1; // Recalculate dolly speed for eye->target distance on each Nth frame
99364
99365
  const EPSILON = 0.001;
99365
99366
  const tempVec3$1 = math.vec3();
99366
- const tempVec3a$4 = math.vec3();
99367
- const tempVec3b$1 = math.vec3();
99368
99367
 
99369
99368
  /**
99370
99369
  * Handles camera updates on each "tick" that were scheduled by the various controllers.
@@ -99384,7 +99383,7 @@ class CameraUpdater {
99384
99383
  let countDown = SCALE_DOLLY_EACH_FRAME; // Decrements on each tick
99385
99384
  let dollyDistFactor = 1.0; // Calculated when countDown is zero
99386
99385
  let followPointerWorldPos = null; // Holds the pointer's World position when configs.followPointer is true
99387
-
99386
+
99388
99387
  this._onTick = scene.on("tick", () => {
99389
99388
 
99390
99389
  if (!(configs.active && configs.pointerEnabled)) {
@@ -99445,7 +99444,7 @@ class CameraUpdater {
99445
99444
 
99446
99445
  if (pickController.pickResult && pickController.pickResult.worldPos) {
99447
99446
  followPointerWorldPos = pickController.pickResult.worldPos;
99448
-
99447
+
99449
99448
  } else {
99450
99449
  dollyDistFactor = 1.0;
99451
99450
  followPointerWorldPos = null;
@@ -99665,13 +99664,6 @@ class CameraUpdater {
99665
99664
  });
99666
99665
  }
99667
99666
 
99668
- isLookingDownwards(look, eye) {
99669
- const camera = this._scene.camera;
99670
- const forwardAxis = math.normalizeVec3(math.subVec3(look, eye, tempVec3a$4));
99671
- const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$1);
99672
- let rightAxisLen = math.sqLenVec3(rightAxis);
99673
- return (Math.abs(rightAxisLen) <= 0.1);
99674
- }
99675
99667
 
99676
99668
  destroy() {
99677
99669
  this._scene.off(this._onTick);
@@ -103058,27 +103050,27 @@ class Viewer {
103058
103050
 
103059
103051
  const needFinishSnapshot = (!this._snapshotBegun);
103060
103052
 
103061
- if (!this._snapshotBegun) {
103062
- this.beginSnapshot();
103063
- }
103064
-
103065
- if (!params.includeGizmos) {
103066
- this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
103067
- }
103068
-
103069
103053
  const resize = (params.width !== undefined && params.height !== undefined);
103070
103054
  const canvas = this.scene.canvas.canvas;
103071
103055
  const saveWidth = canvas.clientWidth;
103072
103056
  const saveHeight = canvas.clientHeight;
103073
- const saveCssWidth = canvas.style.width;
103074
- const saveCssHeight = canvas.style.height;
103057
+ canvas.style.width;
103058
+ canvas.style.height;
103075
103059
 
103076
103060
  const width = params.width ? Math.floor(params.width) : canvas.width;
103077
103061
  const height = params.height ? Math.floor(params.height) : canvas.height;
103078
103062
 
103079
103063
  if (resize) {
103080
- canvas.style.width = width + "px";
103081
- canvas.style.height = height + "px";
103064
+ canvas.width = width;
103065
+ canvas.height = height;
103066
+ }
103067
+
103068
+ if (!this._snapshotBegun) {
103069
+ this.beginSnapshot();
103070
+ }
103071
+
103072
+ if (!params.includeGizmos) {
103073
+ this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
103082
103074
  }
103083
103075
 
103084
103076
  this.scene._renderer.renderSnapshot();
@@ -103086,8 +103078,6 @@ class Viewer {
103086
103078
  const imageDataURI = this.scene._renderer.readSnapshot(params);
103087
103079
 
103088
103080
  if (resize) {
103089
- canvas.style.width = saveCssWidth;
103090
- canvas.style.height = saveCssHeight;
103091
103081
  canvas.width = saveWidth;
103092
103082
  canvas.height = saveHeight;
103093
103083