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

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
  }
@@ -11687,8 +11687,8 @@ class Annotation extends Marker {
11687
11687
  }
11688
11688
  }
11689
11689
 
11690
- const tempVec3a$1h = math.vec3();
11691
- const tempVec3b$d = math.vec3();
11690
+ const tempVec3a$1g = math.vec3();
11691
+ const tempVec3b$c = math.vec3();
11692
11692
  const tempVec3c$9 = math.vec3();
11693
11693
 
11694
11694
  /**
@@ -12165,8 +12165,8 @@ class AnnotationsPlugin extends Plugin {
12165
12165
  if (!pickResult.worldPos || !pickResult.worldNormal) {
12166
12166
  this.error("Param 'pickResult' does not have both worldPos and worldNormal");
12167
12167
  } else {
12168
- const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1h);
12169
- const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$d);
12168
+ const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1g);
12169
+ const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$c);
12170
12170
  const offsetWorldPos = math.addVec3(pickResult.worldPos, offsetVec, tempVec3c$9);
12171
12171
  worldPos = offsetWorldPos;
12172
12172
  entity = pickResult.entity;
@@ -14362,7 +14362,7 @@ const MARKER_COLOR = math.vec3([1.0, 0.0, 0.0]);
14362
14362
  const POINT_SIZE = 20;
14363
14363
  const MARKER_SPRITE_CLIPZ_OFFSET = -0.001; // Amount that we offset sprite clip Z coords to raise them from surfaces
14364
14364
 
14365
- const tempVec3a$1g = math.vec3();
14365
+ const tempVec3a$1f = math.vec3();
14366
14366
 
14367
14367
  /**
14368
14368
  * Manages occlusion testing. Private member of a Renderer.
@@ -14699,7 +14699,7 @@ class OcclusionTester {
14699
14699
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
14700
14700
  if (active) {
14701
14701
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
14702
- gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1g));
14702
+ gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f));
14703
14703
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
14704
14704
  }
14705
14705
  }
@@ -18704,7 +18704,7 @@ class CustomProjection extends Component {
18704
18704
  }
18705
18705
 
18706
18706
  const tempVec3$6 = math.vec3();
18707
- const tempVec3b$c = math.vec3();
18707
+ const tempVec3b$b = math.vec3();
18708
18708
  const tempVec3c$8 = math.vec3();
18709
18709
  const tempVec3d$4 = math.vec3();
18710
18710
  const tempVec3e$3 = math.vec3();
@@ -19014,7 +19014,7 @@ class Camera extends Component {
19014
19014
  orbitYaw(angleInc) {
19015
19015
  let lookEyeVec = math.subVec3(this._eye, this._look, tempVec3$6);
19016
19016
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19017
- lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$c);
19017
+ lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$b);
19018
19018
  this.eye = math.addVec3(this._look, lookEyeVec, tempVec3c$8); // Set eye position as 'look' plus 'eye' vector
19019
19019
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4); // Rotate 'up' vector
19020
19020
  }
@@ -19032,7 +19032,7 @@ class Camera extends Component {
19032
19032
  }
19033
19033
  }
19034
19034
  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));
19035
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19036
19036
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19037
19037
  eye2 = math.transformPoint3(tempMat, eye2, tempVec3d$4);
19038
19038
  this.up = math.transformPoint3(tempMat, this._up, tempVec3e$3);
@@ -19047,7 +19047,7 @@ class Camera extends Component {
19047
19047
  yaw(angleInc) {
19048
19048
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19049
19049
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19050
- look2 = math.transformPoint3(tempMat, look2, tempVec3b$c);
19050
+ look2 = math.transformPoint3(tempMat, look2, tempVec3b$b);
19051
19051
  this.look = math.addVec3(look2, this._eye, tempVec3c$8);
19052
19052
  if (this._gimbalLock) {
19053
19053
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4);
@@ -19067,7 +19067,7 @@ class Camera extends Component {
19067
19067
  }
19068
19068
  }
19069
19069
  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));
19070
+ const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19071
19071
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19072
19072
  this.up = math.transformPoint3(tempMat, this._up, tempVec3f$3);
19073
19073
  look2 = math.transformPoint3(tempMat, look2, tempVec3d$4);
@@ -19084,7 +19084,7 @@ class Camera extends Component {
19084
19084
  const vec = [0, 0, 0];
19085
19085
  let v;
19086
19086
  if (pan[0] !== 0) {
19087
- const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$c));
19087
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$b));
19088
19088
  v = math.mulVec3Scalar(left, pan[0]);
19089
19089
  vec[0] += v[0];
19090
19090
  vec[1] += v[1];
@@ -19113,7 +19113,7 @@ class Camera extends Component {
19113
19113
  */
19114
19114
  zoom(delta) {
19115
19115
  const vec = math.subVec3(this._eye, this._look, tempVec3$6);
19116
- const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$c));
19116
+ const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$b));
19117
19117
  const newLenLook = Math.abs(lenLook + delta);
19118
19118
  if (newLenLook < 0.5) {
19119
19119
  return;
@@ -19575,7 +19575,7 @@ class Camera extends Component {
19575
19575
  }
19576
19576
 
19577
19577
  const tempVec4$9 = math.vec4();
19578
- const tempVec3a$1f = math.vec3();
19578
+ const tempVec3a$1e = math.vec3();
19579
19579
 
19580
19580
  /**
19581
19581
  * @private
@@ -19662,7 +19662,7 @@ class TrianglesDataTextureColorRenderer {
19662
19662
  if (active) {
19663
19663
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
19664
19664
  if (origin) {
19665
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f);
19665
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
19666
19666
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
19667
19667
  } else {
19668
19668
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20189,7 +20189,7 @@ class TrianglesDataTextureColorRenderer {
20189
20189
 
20190
20190
  const defaultColor$6 = new Float32Array([1, 1, 1]);
20191
20191
  math.vec4();
20192
- const tempVec3a$1e = math.vec3();
20192
+ const tempVec3a$1d = math.vec3();
20193
20193
 
20194
20194
  /**
20195
20195
  * @private
@@ -20297,7 +20297,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20297
20297
  if (active) {
20298
20298
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20299
20299
  if (origin) {
20300
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
20300
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20301
20301
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20302
20302
  } else {
20303
20303
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20653,7 +20653,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20653
20653
  }
20654
20654
  }
20655
20655
 
20656
- const tempVec3a$1d = math.vec3();
20656
+ const tempVec3a$1c = math.vec3();
20657
20657
  const defaultColor$5 = new Float32Array([0,0,0,1]);
20658
20658
 
20659
20659
  /**
@@ -20753,7 +20753,7 @@ class TrianglesDataTextureEdgesRenderer {
20753
20753
  if (active) {
20754
20754
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20755
20755
  if (origin) {
20756
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20756
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
20757
20757
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20758
20758
  } else {
20759
20759
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21072,7 +21072,7 @@ class TrianglesDataTextureEdgesRenderer {
21072
21072
  }
21073
21073
  }
21074
21074
 
21075
- const tempVec3a$1c = math.vec3();
21075
+ const tempVec3a$1b = math.vec3();
21076
21076
 
21077
21077
  /**
21078
21078
  * @private
@@ -21146,7 +21146,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21146
21146
  if (active) {
21147
21147
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21148
21148
  if (origin) {
21149
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
21149
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21150
21150
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21151
21151
  } else {
21152
21152
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21474,7 +21474,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21474
21474
  }
21475
21475
  }
21476
21476
 
21477
- const tempVec3a$1b = math.vec3();
21477
+ const tempVec3a$1a = math.vec3();
21478
21478
 
21479
21479
  /**
21480
21480
  * @private
@@ -21561,7 +21561,7 @@ class TrianglesDataTexturePickMeshRenderer {
21561
21561
  if (active) {
21562
21562
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21563
21563
  if (origin) {
21564
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21564
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
21565
21565
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21566
21566
  } else {
21567
21567
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21917,7 +21917,7 @@ class TrianglesDataTexturePickMeshRenderer {
21917
21917
  }
21918
21918
  }
21919
21919
 
21920
- const tempVec3a$1a = math.vec3();
21920
+ const tempVec3a$19 = math.vec3();
21921
21921
 
21922
21922
  /**
21923
21923
  * @private
@@ -22009,7 +22009,7 @@ class TrianglesDataTexturePickDepthRenderer {
22009
22009
  if (active) {
22010
22010
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22011
22011
  if (origin) {
22012
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
22012
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22013
22013
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22014
22014
  } else {
22015
22015
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -22368,7 +22368,7 @@ class TrianglesDataTexturePickDepthRenderer {
22368
22368
  }
22369
22369
  }
22370
22370
 
22371
- const tempVec3a$19 = math.vec3();
22371
+ const tempVec3a$18 = math.vec3();
22372
22372
 
22373
22373
  /**
22374
22374
  * @private
@@ -22460,7 +22460,7 @@ class TrianglesDataTexturePickNormalsRenderer {
22460
22460
  if (active) {
22461
22461
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22462
22462
  if (origin) {
22463
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22463
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
22464
22464
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22465
22465
  } else {
22466
22466
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23024,7 +23024,7 @@ class TrianglesDataTextureOcclusionRenderer {
23024
23024
  }
23025
23025
 
23026
23026
  math.vec4();
23027
- const tempVec3a$18 = math.vec3();
23027
+ const tempVec3a$17 = math.vec3();
23028
23028
 
23029
23029
  /**
23030
23030
  * @private
@@ -23109,7 +23109,7 @@ class TrianglesDataTextureDepthRenderer {
23109
23109
  if (active) {
23110
23110
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23111
23111
  if (origin) {
23112
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
23112
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23113
23113
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23114
23114
  } else {
23115
23115
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23480,7 +23480,7 @@ class TrianglesDataTextureDepthRenderer {
23480
23480
  }
23481
23481
  }
23482
23482
 
23483
- const tempVec3a$17 = math.vec3();
23483
+ const tempVec3a$16 = math.vec3();
23484
23484
 
23485
23485
  /**
23486
23486
  * @private
@@ -23543,7 +23543,7 @@ class TrianglesDataTextureNormalsRenderer {
23543
23543
  if (active) {
23544
23544
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23545
23545
  if (origin) {
23546
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23546
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
23547
23547
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23548
23548
  } else {
23549
23549
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23973,7 +23973,7 @@ class TrianglesDataTextureShadowRenderer {
23973
23973
  }
23974
23974
 
23975
23975
  const tempVec4$8 = math.vec4();
23976
- const tempVec3a$16 = math.vec3();
23976
+ const tempVec3a$15 = math.vec3();
23977
23977
 
23978
23978
  const TEXTURE_DECODE_FUNCS$2 = {
23979
23979
  "linear": "linearToLinear",
@@ -24044,7 +24044,7 @@ class TrianglesDataTextureColorQualityRenderer {
24044
24044
  if (active) {
24045
24045
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24046
24046
  if (origin) {
24047
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
24047
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24048
24048
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24049
24049
  } else {
24050
24050
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -24783,7 +24783,7 @@ class TrianglesDataTextureColorQualityRenderer {
24783
24783
  }
24784
24784
  }
24785
24785
 
24786
- const tempVec3a$15 = math.vec3();
24786
+ const tempVec3a$14 = math.vec3();
24787
24787
 
24788
24788
  /**
24789
24789
  * @private
@@ -24897,7 +24897,7 @@ class TrianglesDataTexturePickNormalsFlatRenderer {
24897
24897
  if (active) {
24898
24898
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24899
24899
  if (origin) {
24900
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24900
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$14);
24901
24901
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24902
24902
  } else {
24903
24903
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -27634,8 +27634,8 @@ const tempUint8Array4 = new Uint8Array (4);
27634
27634
 
27635
27635
  const tempFloat32Array3 = new Float32Array (3);
27636
27636
 
27637
- const tempVec3a$14 = math.vec3();
27638
- const tempVec3b$b = math.vec3();
27637
+ const tempVec3a$13 = math.vec3();
27638
+ const tempVec3b$a = math.vec3();
27639
27639
  const tempVec3c$7 = math.vec3();
27640
27640
  const tempVec3d$3 = math.vec3();
27641
27641
  const tempVec3e$2 = math.vec3();
@@ -29260,8 +29260,8 @@ class TrianglesDataTextureLayer {
29260
29260
  const origin = state.origin;
29261
29261
  const offset = portion.offset;
29262
29262
 
29263
- const rtcRayOrigin = tempVec3a$14;
29264
- const rtcRayDir = tempVec3b$b;
29263
+ const rtcRayOrigin = tempVec3a$13;
29264
+ const rtcRayDir = tempVec3b$a;
29265
29265
 
29266
29266
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$7) : worldRayOrigin); // World -> RTC
29267
29267
  rtcRayDir.set(worldRayDir);
@@ -32110,7 +32110,7 @@ class ViewFrustumCullingManager {
32110
32110
 
32111
32111
  WEBGL_INFO.SUPPORTED_EXTENSIONS["ANGLE_instanced_arrays"];
32112
32112
 
32113
- const tempVec3a$13 = math.vec3();
32113
+ const tempVec3a$12 = math.vec3();
32114
32114
  const tempMat4$3 = math.mat4();
32115
32115
 
32116
32116
  const defaultScale$1 = math.vec3([1, 1, 1]);
@@ -33082,7 +33082,7 @@ class DataTextureSceneModel extends Component {
33082
33082
  }
33083
33083
 
33084
33084
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
33085
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$13) : this._origin;
33085
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$12) : this._origin;
33086
33086
 
33087
33087
  switch (primitive) {
33088
33088
  case "triangles":
@@ -33346,7 +33346,7 @@ class DataTextureSceneModel extends Component {
33346
33346
  if (!origin) {
33347
33347
  origin = cfgOrigin;
33348
33348
  } else {
33349
- origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$13);
33349
+ origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$12);
33350
33350
  }
33351
33351
  } else {
33352
33352
  origin = this._origin;
@@ -35317,8 +35317,11 @@ const Renderer = function (scene, options) {
35317
35317
  *
35318
35318
  * Exit snapshot mode using endSnapshot().
35319
35319
  */
35320
- this.beginSnapshot = function () {
35320
+ this.beginSnapshot = function (params={}) {
35321
35321
  const snapshotBuffer = renderBufferManager.getRenderBuffer("snapshot");
35322
+ if (params.width && params.height) {
35323
+ snapshotBuffer.setSize([params.width, params.height]);
35324
+ }
35322
35325
  snapshotBuffer.bind();
35323
35326
  snapshotBuffer.clear();
35324
35327
  snapshotBound = true;
@@ -40629,11 +40632,7 @@ class SAO extends Component {
40629
40632
 
40630
40633
  super(owner, cfg);
40631
40634
 
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
40635
+ this._supported = WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
40637
40636
 
40638
40637
  this.enabled = cfg.enabled;
40639
40638
  this.kernelRadius = cfg.kernelRadius;
@@ -45975,7 +45974,7 @@ function buildFragmentDraw(mesh) {
45975
45974
  * @author xeolabs / https://github.com/xeolabs
45976
45975
  */
45977
45976
 
45978
- const tempVec3a$12 = math.vec3();
45977
+ const tempVec3a$11 = math.vec3();
45979
45978
 
45980
45979
  const ids$2 = new Map$1({});
45981
45980
 
@@ -46074,7 +46073,7 @@ DrawRenderer.prototype.drawMesh = function (frameCtx, mesh) {
46074
46073
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
46075
46074
  if (active) {
46076
46075
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
46077
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$12) : sectionPlane.pos);
46076
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
46078
46077
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
46079
46078
  }
46080
46079
  }
@@ -47212,7 +47211,7 @@ function buildFragment$5(mesh) {
47212
47211
 
47213
47212
  const ids$1 = new Map$1({});
47214
47213
 
47215
- const tempVec3a$11 = math.vec3();
47214
+ const tempVec3a$10 = math.vec3();
47216
47215
 
47217
47216
  /**
47218
47217
  * @private
@@ -47296,7 +47295,7 @@ EmphasisFillRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47296
47295
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47297
47296
  if (active) {
47298
47297
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47299
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
47298
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47300
47299
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47301
47300
  }
47302
47301
  }
@@ -47632,7 +47631,7 @@ function buildFragment$4(mesh) {
47632
47631
 
47633
47632
  const ids = new Map$1({});
47634
47633
 
47635
- const tempVec3a$10 = math.vec3();
47634
+ const tempVec3a$$ = math.vec3();
47636
47635
 
47637
47636
  /**
47638
47637
  * @private
@@ -47715,7 +47714,7 @@ EmphasisEdgesRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47715
47714
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47716
47715
  if (active) {
47717
47716
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47718
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47717
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
47719
47718
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47720
47719
  }
47721
47720
  }
@@ -48010,7 +48009,7 @@ function buildFragment$3(mesh) {
48010
48009
  * @author xeolabs / https://github.com/xeolabs
48011
48010
  */
48012
48011
 
48013
- const tempVec3a$$ = math.vec3();
48012
+ const tempVec3a$_ = math.vec3();
48014
48013
 
48015
48014
  // No ID, because there is exactly one PickMeshRenderer per scene
48016
48015
 
@@ -48094,7 +48093,7 @@ PickMeshRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48094
48093
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48095
48094
  if (active) {
48096
48095
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48097
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
48096
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48098
48097
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48099
48098
  }
48100
48099
  }
@@ -48327,7 +48326,7 @@ function buildFragment$2(mesh) {
48327
48326
  * @author xeolabs / https://github.com/xeolabs
48328
48327
  */
48329
48328
 
48330
- const tempVec3a$_ = math.vec3();
48329
+ const tempVec3a$Z = math.vec3();
48331
48330
 
48332
48331
  /**
48333
48332
  * @private
@@ -48419,7 +48418,7 @@ PickTriangleRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48419
48418
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48420
48419
  if (active) {
48421
48420
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48422
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48421
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48423
48422
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48424
48423
  }
48425
48424
  }
@@ -48656,7 +48655,7 @@ function buildFragment$1(mesh) {
48656
48655
  * @author xeolabs / https://github.com/xeolabs
48657
48656
  */
48658
48657
 
48659
- const tempVec3a$Z = math.vec3();
48658
+ const tempVec3a$Y = math.vec3();
48660
48659
 
48661
48660
  // No ID, because there is exactly one PickMeshRenderer per scene
48662
48661
 
@@ -48764,7 +48763,7 @@ OcclusionRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48764
48763
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48765
48764
  if (active) {
48766
48765
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48767
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48766
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Y) : sectionPlane.pos);
48768
48767
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48769
48768
  }
48770
48769
  }
@@ -61366,8 +61365,8 @@ class LineSet extends Component {
61366
61365
  }
61367
61366
 
61368
61367
  const tempVec3$4 = math.vec3();
61369
- const tempVec3a$Y = math.vec3();
61370
- const tempVec3b$a = math.vec3();
61368
+ const tempVec3a$X = math.vec3();
61369
+ const tempVec3b$9 = math.vec3();
61371
61370
  const tempVec3c$6 = math.vec3();
61372
61371
 
61373
61372
  /**
@@ -62047,8 +62046,8 @@ class BCFViewpointsPlugin extends Plugin {
62047
62046
  bcfViewpoint.bitmaps.forEach(function (e) {
62048
62047
  const bitmap_type = e.bitmap_type || "jpg"; // "jpg" | "png"
62049
62048
  const bitmap_data = e.bitmap_data; // base64
62050
- let location = xyzObjectToArray(e.location, tempVec3a$Y);
62051
- let normal = xyzObjectToArray(e.normal, tempVec3b$a);
62049
+ let location = xyzObjectToArray(e.location, tempVec3a$X);
62050
+ let normal = xyzObjectToArray(e.normal, tempVec3b$9);
62052
62051
  let up = xyzObjectToArray(e.up, tempVec3c$6);
62053
62052
  let height = e.height || 1;
62054
62053
  if (!bitmap_type) {
@@ -63937,7 +63936,7 @@ class SplineCurve extends Curve {
63937
63936
  }
63938
63937
  }
63939
63938
 
63940
- const tempVec3a$X = math.vec3();
63939
+ const tempVec3a$W = math.vec3();
63941
63940
 
63942
63941
  /**
63943
63942
  * @desc Defines a sequence of frames along which a {@link CameraPathAnimation} can animate a {@link Camera}.
@@ -64069,9 +64068,9 @@ class CameraPath extends Component {
64069
64068
  t = t / (this._frames[this._frames.length - 1].t - this._frames[0].t);
64070
64069
  t = t < 0.0 ? 0.0 : (t > 1.0 ? 1.0 : t);
64071
64070
 
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);
64071
+ camera.eye = this._eyeCurve.getPoint(t, tempVec3a$W);
64072
+ camera.look = this._lookCurve.getPoint(t, tempVec3a$W);
64073
+ camera.up = this._upCurve.getPoint(t, tempVec3a$W);
64075
64074
  }
64076
64075
 
64077
64076
  /**
@@ -65110,7 +65109,7 @@ CameraPathAnimation.PLAYING = 2;
65110
65109
  CameraPathAnimation.PLAYING_TO = 3;
65111
65110
 
65112
65111
  const tempVec3$2 = math.vec3();
65113
- const tempVec3b$9 = math.vec3();
65112
+ const tempVec3b$8 = math.vec3();
65114
65113
  math.vec3();
65115
65114
  const zeroVec$1 = math.vec3([0, -1, 0]);
65116
65115
  const tempQuat = math.vec4([0, 0, 0, 1]);
@@ -65538,7 +65537,7 @@ class ImagePlane extends Component {
65538
65537
  const dist = -math.dotVec3(negDir, tempVec3$2);
65539
65538
 
65540
65539
  math.normalizeVec3(negDir);
65541
- math.mulVec3Scalar(negDir, dist, tempVec3b$9);
65540
+ math.mulVec3Scalar(negDir, dist, tempVec3b$8);
65542
65541
  math.vec3PairToQuaternion(zeroVec$1, dir, tempQuat);
65543
65542
 
65544
65543
  this._node.quaternion = tempQuat;
@@ -66704,8 +66703,8 @@ class SpriteMarker extends Marker {
66704
66703
  }
66705
66704
  }
66706
66705
 
66707
- const tempVec3a$W = math.vec3();
66708
- const tempVec3b$8 = math.vec3();
66706
+ const tempVec3a$V = math.vec3();
66707
+ const tempVec3b$7 = math.vec3();
66709
66708
  const tempMat4a = math.mat4();
66710
66709
 
66711
66710
  /**
@@ -66782,8 +66781,8 @@ function frustumIntersectsAABB3(frustum, aabb) {
66782
66781
 
66783
66782
  let ret = Frustum.INSIDE;
66784
66783
 
66785
- const min = tempVec3a$W;
66786
- const max = tempVec3b$8;
66784
+ const min = tempVec3a$V;
66785
+ const max = tempVec3b$7;
66787
66786
 
66788
66787
  min[0] = aabb[0];
66789
66788
  min[1] = aabb[1];
@@ -69364,7 +69363,7 @@ const RENDER_PASSES = {
69364
69363
  };
69365
69364
 
69366
69365
  const tempVec4$7 = math.vec4();
69367
- const tempVec3a$V = math.vec3();
69366
+ const tempVec3a$U = math.vec3();
69368
69367
 
69369
69368
  /**
69370
69369
  * @private
@@ -69429,7 +69428,7 @@ class TrianglesBatchingColorRenderer {
69429
69428
  if (active) {
69430
69429
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69431
69430
  if (origin) {
69432
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$V);
69431
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69433
69432
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69434
69433
  } else {
69435
69434
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -69857,7 +69856,7 @@ class TrianglesBatchingColorRenderer {
69857
69856
  }
69858
69857
 
69859
69858
  const tempVec4$6 = math.vec4();
69860
- const tempVec3a$U = math.vec3();
69859
+ const tempVec3a$T = math.vec3();
69861
69860
 
69862
69861
  /**
69863
69862
  * @private
@@ -69919,7 +69918,7 @@ class TrianglesBatchingFlatColorRenderer {
69919
69918
  if (active) {
69920
69919
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69921
69920
  if (origin) {
69922
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69921
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
69923
69922
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69924
69923
  } else {
69925
69924
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70336,7 +70335,7 @@ class TrianglesBatchingFlatColorRenderer {
70336
70335
  }
70337
70336
 
70338
70337
  const defaultColor$4 = new Float32Array([1, 1, 1]);
70339
- const tempVec3a$T = math.vec3();
70338
+ const tempVec3a$S = math.vec3();
70340
70339
 
70341
70340
  /**
70342
70341
  * @private
@@ -70420,7 +70419,7 @@ class TrianglesBatchingSilhouetteRenderer {
70420
70419
  if (active) {
70421
70420
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70422
70421
  if (origin) {
70423
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
70422
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70424
70423
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70425
70424
  } else {
70426
70425
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70657,7 +70656,7 @@ class TrianglesBatchingSilhouetteRenderer {
70657
70656
  }
70658
70657
  }
70659
70658
 
70660
- const tempVec3a$S = math.vec3();
70659
+ const tempVec3a$R = math.vec3();
70661
70660
  const defaultColor$3 = new Float32Array([0,0,0,1]);
70662
70661
 
70663
70662
  /**
@@ -70740,7 +70739,7 @@ class TrianglesBatchingEdgesRenderer {
70740
70739
  if (active) {
70741
70740
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70742
70741
  if (origin) {
70743
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70742
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
70744
70743
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70745
70744
  } else {
70746
70745
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70968,7 +70967,7 @@ class TrianglesBatchingEdgesRenderer {
70968
70967
  }
70969
70968
  }
70970
70969
 
70971
- const tempVec3a$R = math.vec3();
70970
+ const tempVec3a$Q = math.vec3();
70972
70971
 
70973
70972
  /**
70974
70973
  * @private
@@ -71028,7 +71027,7 @@ class TrianglesBatchingEdgesColorRenderer {
71028
71027
  if (active) {
71029
71028
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71030
71029
  if (origin) {
71031
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
71030
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71032
71031
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71033
71032
  } else {
71034
71033
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71256,7 +71255,7 @@ class TrianglesBatchingEdgesColorRenderer {
71256
71255
  }
71257
71256
  }
71258
71257
 
71259
- const tempVec3a$Q = math.vec3();
71258
+ const tempVec3a$P = math.vec3();
71260
71259
 
71261
71260
  /**
71262
71261
  * @private
@@ -71322,7 +71321,7 @@ class TrianglesBatchingPickMeshRenderer {
71322
71321
  if (active) {
71323
71322
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71324
71323
  if (origin) {
71325
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71324
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71326
71325
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71327
71326
  } else {
71328
71327
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71552,7 +71551,7 @@ class TrianglesBatchingPickMeshRenderer {
71552
71551
  }
71553
71552
  }
71554
71553
 
71555
- const tempVec3a$P = math.vec3();
71554
+ const tempVec3a$O = math.vec3();
71556
71555
 
71557
71556
  /**
71558
71557
  * @private
@@ -71623,7 +71622,7 @@ class TrianglesBatchingPickDepthRenderer {
71623
71622
  if (active) {
71624
71623
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71625
71624
  if (origin) {
71626
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71625
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71627
71626
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71628
71627
  } else {
71629
71628
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71861,7 +71860,7 @@ class TrianglesBatchingPickDepthRenderer {
71861
71860
  }
71862
71861
  }
71863
71862
 
71864
- const tempVec3a$O = math.vec3();
71863
+ const tempVec3a$N = math.vec3();
71865
71864
 
71866
71865
  /**
71867
71866
  * @private
@@ -71929,7 +71928,7 @@ class TrianglesBatchingPickNormalsRenderer {
71929
71928
  if (active) {
71930
71929
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71931
71930
  if (origin) {
71932
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71931
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
71933
71932
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71934
71933
  } else {
71935
71934
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72154,7 +72153,7 @@ class TrianglesBatchingPickNormalsRenderer {
72154
72153
  }
72155
72154
  }
72156
72155
 
72157
- const tempVec3a$N = math.vec3();
72156
+ const tempVec3a$M = math.vec3();
72158
72157
 
72159
72158
  /**
72160
72159
  * @private
@@ -72214,7 +72213,7 @@ class TrianglesBatchingOcclusionRenderer {
72214
72213
  if (active) {
72215
72214
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72216
72215
  if (origin) {
72217
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
72216
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72218
72217
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72219
72218
  } else {
72220
72219
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72437,7 +72436,7 @@ class TrianglesBatchingOcclusionRenderer {
72437
72436
  }
72438
72437
  }
72439
72438
 
72440
- const tempVec3a$M = math.vec3();
72439
+ const tempVec3a$L = math.vec3();
72441
72440
 
72442
72441
  /**
72443
72442
  * @private
@@ -72497,7 +72496,7 @@ class TrianglesBatchingDepthRenderer {
72497
72496
  if (active) {
72498
72497
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72499
72498
  if (origin) {
72500
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72499
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72501
72500
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72502
72501
  } else {
72503
72502
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72721,7 +72720,7 @@ class TrianglesBatchingDepthRenderer {
72721
72720
  }
72722
72721
  }
72723
72722
 
72724
- const tempVec3a$L = math.vec3();
72723
+ const tempVec3a$K = math.vec3();
72725
72724
 
72726
72725
  /**
72727
72726
  * @private
@@ -72784,7 +72783,7 @@ class TrianglesBatchingNormalsRenderer {
72784
72783
  if (active) {
72785
72784
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72786
72785
  if (origin) {
72787
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72786
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
72788
72787
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72789
72788
  } else {
72790
72789
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73024,7 +73023,7 @@ class TrianglesBatchingNormalsRenderer {
73024
73023
  }
73025
73024
  }
73026
73025
 
73027
- const tempVec3a$K = math.vec3();
73026
+ const tempVec3a$J = math.vec3();
73028
73027
 
73029
73028
  /**
73030
73029
  * Renders BatchingLayer fragment depths to a shadow map.
@@ -73093,7 +73092,7 @@ class TrianglesBatchingShadowRenderer {
73093
73092
  if (active) {
73094
73093
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73095
73094
  if (origin) {
73096
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
73095
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73097
73096
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73098
73097
  } else {
73099
73098
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73265,7 +73264,7 @@ class TrianglesBatchingShadowRenderer {
73265
73264
  }
73266
73265
 
73267
73266
  const tempVec4$5 = math.vec4();
73268
- const tempVec3a$J = math.vec3();
73267
+ const tempVec3a$I = math.vec3();
73269
73268
 
73270
73269
  // const TEXTURE_DECODE_FUNCS = {};
73271
73270
  // TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -73338,7 +73337,7 @@ class TrianglesBatchingPBRRenderer {
73338
73337
  if (active) {
73339
73338
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73340
73339
  if (origin) {
73341
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73340
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
73342
73341
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73343
73342
  } else {
73344
73343
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74143,7 +74142,7 @@ class TrianglesBatchingPBRRenderer {
74143
74142
  }
74144
74143
  }
74145
74144
 
74146
- const tempVec3a$I = math.vec3();
74145
+ const tempVec3a$H = math.vec3();
74147
74146
 
74148
74147
  /**
74149
74148
  * @private
@@ -74210,7 +74209,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74210
74209
  if (active) {
74211
74210
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74212
74211
  if (origin) {
74213
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
74212
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74214
74213
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74215
74214
  } else {
74216
74215
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74420,7 +74419,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74420
74419
  }
74421
74420
 
74422
74421
  const tempVec4$4 = math.vec4();
74423
- const tempVec3a$H = math.vec3();
74422
+ const tempVec3a$G = math.vec3();
74424
74423
 
74425
74424
  /**
74426
74425
  * @private
@@ -74485,7 +74484,7 @@ class TrianglesBatchingColorTextureRenderer {
74485
74484
  if (active) {
74486
74485
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74487
74486
  if (origin) {
74488
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74487
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$G);
74489
74488
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74490
74489
  } else {
74491
74490
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -75491,8 +75490,8 @@ const tempVec4b$a = math.vec4([0, 0, 0, 1]);
75491
75490
  const tempVec4c$7 = math.vec4([0, 0, 0, 1]);
75492
75491
  const tempOBB3$2 = math.OBB3();
75493
75492
 
75494
- const tempVec3a$G = math.vec3();
75495
- const tempVec3b$7 = math.vec3();
75493
+ const tempVec3a$F = math.vec3();
75494
+ const tempVec3b$6 = math.vec3();
75496
75495
  const tempVec3c$5 = math.vec3();
75497
75496
  const tempVec3d$2 = math.vec3();
75498
75497
  const tempVec3e$1 = math.vec3();
@@ -76671,8 +76670,8 @@ class TrianglesBatchingLayer {
76671
76670
  const origin = state.origin;
76672
76671
  const offset = portion.offset;
76673
76672
 
76674
- const rtcRayOrigin = tempVec3a$G;
76675
- const rtcRayDir = tempVec3b$7;
76673
+ const rtcRayOrigin = tempVec3a$F;
76674
+ const rtcRayDir = tempVec3b$6;
76676
76675
 
76677
76676
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$5) : worldRayOrigin); // World -> RTC
76678
76677
  rtcRayDir.set(worldRayDir);
@@ -76795,7 +76794,7 @@ class TrianglesBatchingLayer {
76795
76794
  }
76796
76795
 
76797
76796
  const tempVec4$3 = math.vec4();
76798
- const tempVec3a$F = math.vec3();
76797
+ const tempVec3a$E = math.vec3();
76799
76798
 
76800
76799
  /**
76801
76800
  * @private
@@ -76861,7 +76860,7 @@ class TrianglesInstancingColorRenderer {
76861
76860
  if (active) {
76862
76861
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
76863
76862
  if (origin) {
76864
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$F);
76863
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
76865
76864
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
76866
76865
  } else {
76867
76866
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77338,7 +77337,7 @@ class TrianglesInstancingColorRenderer {
77338
77337
  }
77339
77338
 
77340
77339
  const tempVec4$2 = math.vec4();
77341
- const tempVec3a$E = math.vec3();
77340
+ const tempVec3a$D = math.vec3();
77342
77341
 
77343
77342
  /**
77344
77343
  * @private
@@ -77400,7 +77399,7 @@ class TrianglesInstancingFlatColorRenderer {
77400
77399
  if (active) {
77401
77400
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77402
77401
  if (origin) {
77403
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
77402
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77404
77403
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77405
77404
  } else {
77406
77405
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77847,7 +77846,7 @@ class TrianglesInstancingFlatColorRenderer {
77847
77846
  }
77848
77847
  }
77849
77848
 
77850
- const tempVec3a$D = math.vec3();
77849
+ const tempVec3a$C = math.vec3();
77851
77850
 
77852
77851
  /**
77853
77852
  * @private
@@ -77930,7 +77929,7 @@ class TrianglesInstancingSilhouetteRenderer {
77930
77929
  if (active) {
77931
77930
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77932
77931
  if (origin) {
77933
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77932
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
77934
77933
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77935
77934
  } else {
77936
77935
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78202,7 +78201,7 @@ class TrianglesInstancingSilhouetteRenderer {
78202
78201
  }
78203
78202
  }
78204
78203
 
78205
- const tempVec3a$C = math.vec3();
78204
+ const tempVec3a$B = math.vec3();
78206
78205
  const defaultColor$2 = new Float32Array([0,0,0,1]);
78207
78206
 
78208
78207
  /**
@@ -78286,7 +78285,7 @@ class TrianglesInstancingEdgesRenderer {
78286
78285
  if (active) {
78287
78286
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78288
78287
  if (origin) {
78289
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
78288
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78290
78289
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78291
78290
  } else {
78292
78291
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78547,7 +78546,7 @@ class TrianglesInstancingEdgesRenderer {
78547
78546
  }
78548
78547
  }
78549
78548
 
78550
- const tempVec3a$B = math.vec3();
78549
+ const tempVec3a$A = math.vec3();
78551
78550
 
78552
78551
  /**
78553
78552
  * @private
@@ -78608,7 +78607,7 @@ class TrianglesInstancingEdgesColorRenderer {
78608
78607
  if (active) {
78609
78608
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78610
78609
  if (origin) {
78611
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78610
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78612
78611
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78613
78612
  } else {
78614
78613
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78874,7 +78873,7 @@ class TrianglesInstancingEdgesColorRenderer {
78874
78873
  }
78875
78874
  }
78876
78875
 
78877
- const tempVec3a$A = math.vec3();
78876
+ const tempVec3a$z = math.vec3();
78878
78877
 
78879
78878
  /**
78880
78879
  * @private
@@ -78977,7 +78976,7 @@ class TrianglesInstancingPickMeshRenderer {
78977
78976
  if (active) {
78978
78977
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78979
78978
  if (origin) {
78980
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78979
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
78981
78980
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78982
78981
  } else {
78983
78982
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79212,7 +79211,7 @@ class TrianglesInstancingPickMeshRenderer {
79212
79211
  }
79213
79212
  }
79214
79213
 
79215
- const tempVec3a$z = math.vec3();
79214
+ const tempVec3a$y = math.vec3();
79216
79215
 
79217
79216
  /**
79218
79217
  * @private
@@ -79289,7 +79288,7 @@ class TrianglesInstancingPickDepthRenderer {
79289
79288
  if (active) {
79290
79289
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79291
79290
  if (origin) {
79292
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
79291
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79293
79292
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79294
79293
  } else {
79295
79294
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79557,7 +79556,7 @@ class TrianglesInstancingPickDepthRenderer {
79557
79556
  }
79558
79557
  }
79559
79558
 
79560
- const tempVec3a$y = math.vec3();
79559
+ const tempVec3a$x = math.vec3();
79561
79560
 
79562
79561
  /**
79563
79562
  * @private
@@ -79634,7 +79633,7 @@ class TrianglesInstancingPickNormalsRenderer {
79634
79633
  if (active) {
79635
79634
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79636
79635
  if (origin) {
79637
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79636
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79638
79637
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79639
79638
  } else {
79640
79639
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79911,7 +79910,7 @@ class TrianglesInstancingPickNormalsRenderer {
79911
79910
  }
79912
79911
  }
79913
79912
 
79914
- const tempVec3a$x = math.vec3();
79913
+ const tempVec3a$w = math.vec3();
79915
79914
 
79916
79915
  /**
79917
79916
  * @private
@@ -79972,7 +79971,7 @@ class TrianglesInstancingOcclusionRenderer {
79972
79971
  if (active) {
79973
79972
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79974
79973
  if (origin) {
79975
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79974
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
79976
79975
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79977
79976
  } else {
79978
79977
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80230,7 +80229,7 @@ class TrianglesInstancingOcclusionRenderer {
80230
80229
  }
80231
80230
  }
80232
80231
 
80233
- const tempVec3a$w = math.vec3();
80232
+ const tempVec3a$v = math.vec3();
80234
80233
 
80235
80234
  /**
80236
80235
  * @private
@@ -80291,7 +80290,7 @@ class TrianglesInstancingDepthRenderer {
80291
80290
  if (active) {
80292
80291
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80293
80292
  if (origin) {
80294
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
80293
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80295
80294
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80296
80295
  } else {
80297
80296
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80541,7 +80540,7 @@ class TrianglesInstancingDepthRenderer {
80541
80540
  }
80542
80541
  }
80543
80542
 
80544
- const tempVec3a$v = math.vec3();
80543
+ const tempVec3a$u = math.vec3();
80545
80544
 
80546
80545
  /**
80547
80546
  * @private
@@ -80605,7 +80604,7 @@ class TrianglesInstancingNormalsRenderer {
80605
80604
  if (active) {
80606
80605
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80607
80606
  if (origin) {
80608
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80607
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80609
80608
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80610
80609
  } else {
80611
80610
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80885,7 +80884,7 @@ class TrianglesInstancingNormalsRenderer {
80885
80884
  }
80886
80885
  }
80887
80886
 
80888
- const tempVec3a$u = math.vec3();
80887
+ const tempVec3a$t = math.vec3();
80889
80888
 
80890
80889
  /**
80891
80890
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -80972,7 +80971,7 @@ class TrianglesInstancingShadowRenderer {
80972
80971
  if (active) {
80973
80972
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80974
80973
  if (origin) {
80975
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80974
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
80976
80975
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80977
80976
  } else {
80978
80977
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -81165,7 +81164,7 @@ class TrianglesInstancingShadowRenderer {
81165
81164
  }
81166
81165
 
81167
81166
  const tempVec4$1 = math.vec4();
81168
- const tempVec3a$t = math.vec3();
81167
+ const tempVec3a$s = math.vec3();
81169
81168
 
81170
81169
  const TEXTURE_DECODE_FUNCS = {};
81171
81170
  TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -81239,7 +81238,7 @@ class TrianglesInstancingPBRRenderer {
81239
81238
  if (active) {
81240
81239
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
81241
81240
  if (origin) {
81242
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
81241
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
81243
81242
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
81244
81243
  } else {
81245
81244
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82075,7 +82074,7 @@ class TrianglesInstancingPBRRenderer {
82075
82074
  }
82076
82075
  }
82077
82076
 
82078
- const tempVec3a$s = math.vec3();
82077
+ const tempVec3a$r = math.vec3();
82079
82078
 
82080
82079
  /**
82081
82080
  * @private
@@ -82150,7 +82149,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82150
82149
  if (active) {
82151
82150
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82152
82151
  if (origin) {
82153
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
82152
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82154
82153
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82155
82154
  } else {
82156
82155
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82390,7 +82389,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82390
82389
  }
82391
82390
 
82392
82391
  const tempVec4 = math.vec4();
82393
- const tempVec3a$r = math.vec3();
82392
+ const tempVec3a$q = math.vec3();
82394
82393
 
82395
82394
  /**
82396
82395
  * @private
@@ -82455,7 +82454,7 @@ class TrianglesInstancingColorTextureRenderer {
82455
82454
  if (active) {
82456
82455
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82457
82456
  if (origin) {
82458
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82457
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$q);
82459
82458
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82460
82459
  } else {
82461
82460
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -83266,8 +83265,8 @@ const tempVec4b$9 = math.vec4([0, 0, 0, 1]);
83266
83265
  const tempVec4c$6 = math.vec4([0, 0, 0, 1]);
83267
83266
  const tempVec3fa$2 = new Float32Array(3);
83268
83267
 
83269
- const tempVec3a$q = math.vec3();
83270
- const tempVec3b$6 = math.vec3();
83268
+ const tempVec3a$p = math.vec3();
83269
+ const tempVec3b$5 = math.vec3();
83271
83270
  const tempVec3c$4 = math.vec3();
83272
83271
  const tempVec3d$1 = math.vec3();
83273
83272
  const tempVec3e = math.vec3();
@@ -84195,8 +84194,8 @@ class TrianglesInstancingLayer {
84195
84194
  const origin = state.origin;
84196
84195
  const offset = portion.offset;
84197
84196
 
84198
- const rtcRayOrigin = tempVec3a$q;
84199
- const rtcRayDir = tempVec3b$6;
84197
+ const rtcRayOrigin = tempVec3a$p;
84198
+ const rtcRayDir = tempVec3b$5;
84200
84199
 
84201
84200
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$4) : worldRayOrigin); // World -> RTC
84202
84201
  rtcRayDir.set(worldRayDir);
@@ -84329,7 +84328,7 @@ class TrianglesInstancingLayer {
84329
84328
  }
84330
84329
  }
84331
84330
 
84332
- const tempVec3a$p = math.vec3();
84331
+ const tempVec3a$o = math.vec3();
84333
84332
 
84334
84333
  /**
84335
84334
  * @private
@@ -84392,7 +84391,7 @@ class LinesBatchingColorRenderer {
84392
84391
  if (active) {
84393
84392
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84394
84393
  if (origin) {
84395
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$p);
84394
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84396
84395
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84397
84396
  } else {
84398
84397
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -84612,7 +84611,7 @@ class LinesBatchingColorRenderer {
84612
84611
  }
84613
84612
 
84614
84613
  const defaultColor$1 = new Float32Array([1, 1, 1]);
84615
- const tempVec3a$o = math.vec3();
84614
+ const tempVec3a$n = math.vec3();
84616
84615
 
84617
84616
  /**
84618
84617
  * @private
@@ -84699,7 +84698,7 @@ class LinesBatchingSilhouetteRenderer {
84699
84698
  if (active) {
84700
84699
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84701
84700
  if (origin) {
84702
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84701
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
84703
84702
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84704
84703
  } else {
84705
84704
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -85796,7 +85795,7 @@ class LinesBatchingLayer {
85796
85795
  }
85797
85796
  }
85798
85797
 
85799
- const tempVec3a$n = math.vec3();
85798
+ const tempVec3a$m = math.vec3();
85800
85799
 
85801
85800
  /**
85802
85801
  * @private
@@ -85859,7 +85858,7 @@ class LinesInstancingColorRenderer {
85859
85858
  if (active) {
85860
85859
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
85861
85860
  if (origin) {
85862
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
85861
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
85863
85862
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
85864
85863
  } else {
85865
85864
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -86141,7 +86140,7 @@ class LinesInstancingColorRenderer {
86141
86140
  }
86142
86141
  }
86143
86142
 
86144
- const tempVec3a$m = math.vec3();
86143
+ const tempVec3a$l = math.vec3();
86145
86144
 
86146
86145
  /**
86147
86146
  * @private
@@ -86226,7 +86225,7 @@ class LinesInstancingSilhouetteRenderer {
86226
86225
  if (active) {
86227
86226
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
86228
86227
  if (origin) {
86229
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
86228
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
86230
86229
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
86231
86230
  } else {
86232
86231
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87208,7 +87207,7 @@ class LinesInstancingLayer {
87208
87207
  }
87209
87208
  }
87210
87209
 
87211
- const tempVec3a$l = math.vec3();
87210
+ const tempVec3a$k = math.vec3();
87212
87211
 
87213
87212
  /**
87214
87213
  * @private
@@ -87269,7 +87268,7 @@ class PointsBatchingColorRenderer {
87269
87268
  if (active) {
87270
87269
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87271
87270
  if (origin) {
87272
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
87271
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87273
87272
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87274
87273
  } else {
87275
87274
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87554,7 +87553,7 @@ class PointsBatchingColorRenderer {
87554
87553
  }
87555
87554
 
87556
87555
  const defaultColor = new Float32Array([1, 1, 1]);
87557
- const tempVec3a$k = math.vec3();
87556
+ const tempVec3a$j = math.vec3();
87558
87557
 
87559
87558
  /**
87560
87559
  * @private
@@ -87639,7 +87638,7 @@ class PointsBatchingSilhouetteRenderer {
87639
87638
  if (active) {
87640
87639
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87641
87640
  if (origin) {
87642
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87641
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87643
87642
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87644
87643
  } else {
87645
87644
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87883,7 +87882,7 @@ class PointsBatchingSilhouetteRenderer {
87883
87882
  }
87884
87883
  }
87885
87884
 
87886
- const tempVec3a$j = math.vec3();
87885
+ const tempVec3a$i = math.vec3();
87887
87886
 
87888
87887
  /**
87889
87888
  * @private
@@ -87950,7 +87949,7 @@ class PointsBatchingPickMeshRenderer {
87950
87949
  if (active) {
87951
87950
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87952
87951
  if (origin) {
87953
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87952
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
87954
87953
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87955
87954
  } else {
87956
87955
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88195,7 +88194,7 @@ class PointsBatchingPickMeshRenderer {
88195
88194
  }
88196
88195
  }
88197
88196
 
88198
- const tempVec3a$i = math.vec3();
88197
+ const tempVec3a$h = math.vec3();
88199
88198
 
88200
88199
  /**
88201
88200
  * @private
@@ -88267,7 +88266,7 @@ class PointsBatchingPickDepthRenderer {
88267
88266
  if (active) {
88268
88267
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88269
88268
  if (origin) {
88270
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
88269
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88271
88270
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88272
88271
  } else {
88273
88272
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88518,7 +88517,7 @@ class PointsBatchingPickDepthRenderer {
88518
88517
  }
88519
88518
  }
88520
88519
 
88521
- const tempVec3a$h = math.vec3();
88520
+ const tempVec3a$g = math.vec3();
88522
88521
 
88523
88522
  /**
88524
88523
  * @private
@@ -88579,7 +88578,7 @@ class PointsBatchingOcclusionRenderer {
88579
88578
  if (active) {
88580
88579
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88581
88580
  if (origin) {
88582
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88581
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$g);
88583
88582
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88584
88583
  } else {
88585
88584
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88945,8 +88944,8 @@ class PointsBatchingBuffer {
88945
88944
  }
88946
88945
  }
88947
88946
 
88948
- const tempVec3a$g = math.vec4();
88949
- const tempVec3b$5 = math.vec4();
88947
+ const tempVec3a$f = math.vec4();
88948
+ const tempVec3b$4 = math.vec4();
88950
88949
  const tempVec4a$6 = math.vec4([0, 0, 0, 1]);
88951
88950
  const tempVec4b$6 = math.vec4([0, 0, 0, 1]);
88952
88951
  const tempVec4c$3 = math.vec4([0, 0, 0, 1]);
@@ -89098,8 +89097,8 @@ class PointsBatchingLayer {
89098
89097
 
89099
89098
  const bounds = geometryCompressionUtils.getPositionsBounds(positionsCompressed);
89100
89099
 
89101
- const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$g);
89102
- const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$5);
89100
+ const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$f);
89101
+ const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$4);
89103
89102
 
89104
89103
  worldAABB[0] = min[0];
89105
89104
  worldAABB[1] = min[1];
@@ -89737,7 +89736,7 @@ class PointsBatchingLayer {
89737
89736
  }
89738
89737
  }
89739
89738
 
89740
- const tempVec3a$f = math.vec3();
89739
+ const tempVec3a$e = math.vec3();
89741
89740
 
89742
89741
  /**
89743
89742
  * @private
@@ -89806,7 +89805,7 @@ class PointsInstancingColorRenderer {
89806
89805
  if (active) {
89807
89806
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
89808
89807
  if (origin) {
89809
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$f);
89808
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
89810
89809
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
89811
89810
  } else {
89812
89811
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90116,7 +90115,7 @@ class PointsInstancingColorRenderer {
90116
90115
  }
90117
90116
  }
90118
90117
 
90119
- const tempVec3a$e = math.vec3();
90118
+ const tempVec3a$d = math.vec3();
90120
90119
 
90121
90120
  /**
90122
90121
  * @private
@@ -90200,7 +90199,7 @@ class PointsInstancingSilhouetteRenderer {
90200
90199
  if (active) {
90201
90200
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90202
90201
  if (origin) {
90203
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
90202
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90204
90203
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90205
90204
  } else {
90206
90205
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90481,7 +90480,7 @@ class PointsInstancingSilhouetteRenderer {
90481
90480
  }
90482
90481
  }
90483
90482
 
90484
- const tempVec3a$d = math.vec3();
90483
+ const tempVec3a$c = math.vec3();
90485
90484
 
90486
90485
  /**
90487
90486
  * @private
@@ -90587,7 +90586,7 @@ class PointsInstancingPickMeshRenderer {
90587
90586
  if (active) {
90588
90587
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90589
90588
  if (origin) {
90590
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90589
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90591
90590
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90592
90591
  } else {
90593
90592
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90838,7 +90837,7 @@ class PointsInstancingPickMeshRenderer {
90838
90837
  }
90839
90838
  }
90840
90839
 
90841
- const tempVec3a$c = math.vec3();
90840
+ const tempVec3a$b = math.vec3();
90842
90841
 
90843
90842
  /**
90844
90843
  * @private
@@ -90916,7 +90915,7 @@ class PointsInstancingPickDepthRenderer {
90916
90915
  if (active) {
90917
90916
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90918
90917
  if (origin) {
90919
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90918
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
90920
90919
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90921
90920
  } else {
90922
90921
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91204,7 +91203,7 @@ class PointsInstancingPickDepthRenderer {
91204
91203
  }
91205
91204
  }
91206
91205
 
91207
- const tempVec3a$b = math.vec3();
91206
+ const tempVec3a$a = math.vec3();
91208
91207
 
91209
91208
  /**
91210
91209
  * @private
@@ -91266,7 +91265,7 @@ class PointsInstancingOcclusionRenderer {
91266
91265
  if (active) {
91267
91266
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91268
91267
  if (origin) {
91269
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
91268
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91270
91269
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91271
91270
  } else {
91272
91271
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91555,7 +91554,7 @@ class PointsInstancingOcclusionRenderer {
91555
91554
  }
91556
91555
  }
91557
91556
 
91558
- const tempVec3a$a = math.vec3();
91557
+ const tempVec3a$9 = math.vec3();
91559
91558
 
91560
91559
  /**
91561
91560
  * @private
@@ -91617,7 +91616,7 @@ class PointsInstancingDepthRenderer {
91617
91616
  if (active) {
91618
91617
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91619
91618
  if (origin) {
91620
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91619
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
91621
91620
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91622
91621
  } else {
91623
91622
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91901,7 +91900,7 @@ class PointsInstancingDepthRenderer {
91901
91900
  }
91902
91901
  }
91903
91902
 
91904
- const tempVec3a$9 = math.vec3();
91903
+ const tempVec3a$8 = math.vec3();
91905
91904
 
91906
91905
  /**
91907
91906
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -91988,7 +91987,7 @@ class PointsInstancingShadowRenderer {
91988
91987
  if (active) {
91989
91988
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91990
91989
  if (origin) {
91991
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
91990
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$8);
91992
91991
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91993
91992
  } else {
91994
91993
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -94329,7 +94328,7 @@ function getKTX2TextureTranscoder(viewer) {
94329
94328
  return transcoder;
94330
94329
  }
94331
94330
 
94332
- const tempVec3a$8 = math.vec3();
94331
+ const tempVec3a$7 = math.vec3();
94333
94332
  const tempMat4$1 = math.mat4();
94334
94333
 
94335
94334
  const defaultScale = math.vec3([1, 1, 1]);
@@ -96710,7 +96709,7 @@ class VBOSceneModel extends Component {
96710
96709
  }
96711
96710
 
96712
96711
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
96713
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$8) : this._origin;
96712
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$7) : this._origin;
96714
96713
 
96715
96714
  const instancingLayer = this._getInstancingLayer(origin, textureSetId, geometryId);
96716
96715
 
@@ -96772,7 +96771,7 @@ class VBOSceneModel extends Component {
96772
96771
 
96773
96772
  let indices = cfg.indices;
96774
96773
  let edgeIndices = cfg.edgeIndices;
96775
- let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$8) : this._origin;
96774
+ let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$7) : this._origin;
96776
96775
  let positions = cfg.positions;
96777
96776
 
96778
96777
  if (positions) {
@@ -97786,8 +97785,8 @@ class TextureTranscoder {
97786
97785
  const screenPos = math.vec4();
97787
97786
  const viewPos = math.vec4();
97788
97787
 
97789
- const tempVec3a$7 = math.vec3();
97790
- const tempVec3b$4 = math.vec3();
97788
+ const tempVec3a$6 = math.vec3();
97789
+ const tempVec3b$3 = math.vec3();
97791
97790
  const tempVec3c$3 = math.vec3();
97792
97791
 
97793
97792
  const tempVec4a$4 = math.vec4();
@@ -97821,7 +97820,7 @@ class PanController {
97821
97820
  const camera = this._scene.camera;
97822
97821
 
97823
97822
  if (optionalTargetWorldPos) {
97824
- const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97823
+ const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97825
97824
  const eyeWorldPosDist = math.lenVec3(eyeToWorldPosVec);
97826
97825
  dolliedThroughSurface = (eyeWorldPosDist < dollyDelta);
97827
97826
  }
@@ -97845,9 +97844,9 @@ class PanController {
97845
97844
  // suddenly a lot closer than the point we pivoted about on the surface of the last object
97846
97845
  // that we click-drag-pivoted on.
97847
97846
 
97848
- const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97847
+ const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97849
97848
  const lenEyeTargetVec = math.lenVec3(eyeTargetVec);
97850
- const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$4)), lenEyeTargetVec);
97849
+ const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$3)), lenEyeTargetVec);
97851
97850
  camera.look = [camera.eye[0] + eyeLookVec[0], camera.eye[1] + eyeLookVec[1], camera.eye[2] + eyeLookVec[2]];
97852
97851
  }
97853
97852
 
@@ -97864,7 +97863,7 @@ class PanController {
97864
97863
 
97865
97864
  const worldPos2 = this._unproject(targetCanvasPos, tempVec4b$4);
97866
97865
  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);
97866
+ const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6)), -dollyDelta, tempVec3b$3);
97868
97867
  const moveVec = math.addVec3(offset, eyeLookMoveVec, tempVec3c$3);
97869
97868
 
97870
97869
  camera.eye = [camera.eye[0] - moveVec[0], camera.eye[1] - moveVec[1], camera.eye[2] - moveVec[2]];
@@ -97892,8 +97891,8 @@ class PanController {
97892
97891
  }
97893
97892
  }
97894
97893
 
97895
- const tempVec3a$6 = math.vec3();
97896
- const tempVec3b$3 = math.vec3();
97894
+ const tempVec3a$5 = math.vec3();
97895
+ const tempVec3b$2 = math.vec3();
97897
97896
  const tempVec3c$2 = math.vec3();
97898
97897
 
97899
97898
  const tempVec4a$3 = math.vec4();
@@ -98025,10 +98024,10 @@ class PivotController {
98025
98024
 
98026
98025
  _cameraLookingDownwards() { // Returns true if angle between camera viewing direction and World-space "up" axis is too small
98027
98026
  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);
98027
+ const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$5));
98028
+ const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$2);
98030
98029
  let rightAxisLen = math.sqLenVec3(rightAxis);
98031
- return (Math.abs(rightAxisLen) <= 0.1);
98030
+ return (rightAxisLen <= 0.0001);
98032
98031
  }
98033
98032
 
98034
98033
  /**
@@ -98066,8 +98065,8 @@ class PivotController {
98066
98065
  const screenZ = math.dotVec4(D, Pt3) / math.dotVec4(D, Pt4);
98067
98066
  const worldPos = tempVec4a$3;
98068
98067
  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);
98068
+ const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$5));
98069
+ const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$2), tempVec3c$2);
98071
98070
  this.setPivotPos(posOnSphere);
98072
98071
  }
98073
98072
 
@@ -98089,10 +98088,6 @@ class PivotController {
98089
98088
  if (!this._pivoting) {
98090
98089
  return;
98091
98090
  }
98092
- if (this._cameraLookingDownwards()) {
98093
- this._pivoting = false;
98094
- return;
98095
- }
98096
98091
  if (yawInc === 0 && pitchInc === 0) {
98097
98092
  return;
98098
98093
  }
@@ -98702,8 +98697,8 @@ class MousePanRotateDollyHandler {
98702
98697
  }
98703
98698
 
98704
98699
  const center = math.vec3();
98705
- const tempVec3a$5 = math.vec3();
98706
- const tempVec3b$2 = math.vec3();
98700
+ const tempVec3a$4 = math.vec3();
98701
+ const tempVec3b$1 = math.vec3();
98707
98702
  const tempVec3c$1 = math.vec3();
98708
98703
  const tempVec3d = math.vec3();
98709
98704
 
@@ -98757,39 +98752,39 @@ class KeyboardAxisViewHandler {
98757
98752
 
98758
98753
  if (axisViewRight) {
98759
98754
 
98760
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$5), tempVec3d));
98755
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$4), tempVec3d));
98761
98756
  tempCameraTarget.look.set(center);
98762
98757
  tempCameraTarget.up.set(camera.worldUp);
98763
98758
 
98764
98759
  } else if (axisViewBack) {
98765
98760
 
98766
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$5), tempVec3d));
98761
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$4), tempVec3d));
98767
98762
  tempCameraTarget.look.set(center);
98768
98763
  tempCameraTarget.up.set(camera.worldUp);
98769
98764
 
98770
98765
  } else if (axisViewLeft) {
98771
98766
 
98772
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$5), tempVec3d));
98767
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$4), tempVec3d));
98773
98768
  tempCameraTarget.look.set(center);
98774
98769
  tempCameraTarget.up.set(camera.worldUp);
98775
98770
 
98776
98771
  } else if (axisViewFront) {
98777
98772
 
98778
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$5), tempVec3d));
98773
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$4), tempVec3d));
98779
98774
  tempCameraTarget.look.set(center);
98780
98775
  tempCameraTarget.up.set(camera.worldUp);
98781
98776
 
98782
98777
  } else if (axisViewTop) {
98783
98778
 
98784
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$5), tempVec3d));
98779
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$4), tempVec3d));
98785
98780
  tempCameraTarget.look.set(center);
98786
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$2), tempVec3c$1));
98781
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$1), tempVec3c$1));
98787
98782
 
98788
98783
  } else if (axisViewBottom) {
98789
98784
 
98790
- 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));
98791
98786
  tempCameraTarget.look.set(center);
98792
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$2)));
98787
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$1)));
98793
98788
  }
98794
98789
 
98795
98790
  if ((!configs.firstPerson) && configs.followPointer) {
@@ -99363,8 +99358,6 @@ class KeyboardPanRotateDollyHandler {
99363
99358
  const SCALE_DOLLY_EACH_FRAME = 1; // Recalculate dolly speed for eye->target distance on each Nth frame
99364
99359
  const EPSILON = 0.001;
99365
99360
  const tempVec3$1 = math.vec3();
99366
- const tempVec3a$4 = math.vec3();
99367
- const tempVec3b$1 = math.vec3();
99368
99361
 
99369
99362
  /**
99370
99363
  * Handles camera updates on each "tick" that were scheduled by the various controllers.
@@ -99384,7 +99377,7 @@ class CameraUpdater {
99384
99377
  let countDown = SCALE_DOLLY_EACH_FRAME; // Decrements on each tick
99385
99378
  let dollyDistFactor = 1.0; // Calculated when countDown is zero
99386
99379
  let followPointerWorldPos = null; // Holds the pointer's World position when configs.followPointer is true
99387
-
99380
+
99388
99381
  this._onTick = scene.on("tick", () => {
99389
99382
 
99390
99383
  if (!(configs.active && configs.pointerEnabled)) {
@@ -99445,7 +99438,7 @@ class CameraUpdater {
99445
99438
 
99446
99439
  if (pickController.pickResult && pickController.pickResult.worldPos) {
99447
99440
  followPointerWorldPos = pickController.pickResult.worldPos;
99448
-
99441
+
99449
99442
  } else {
99450
99443
  dollyDistFactor = 1.0;
99451
99444
  followPointerWorldPos = null;
@@ -99665,13 +99658,6 @@ class CameraUpdater {
99665
99658
  });
99666
99659
  }
99667
99660
 
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
99661
 
99676
99662
  destroy() {
99677
99663
  this._scene.off(this._onTick);
@@ -103058,27 +103044,27 @@ class Viewer {
103058
103044
 
103059
103045
  const needFinishSnapshot = (!this._snapshotBegun);
103060
103046
 
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
103047
  const resize = (params.width !== undefined && params.height !== undefined);
103070
103048
  const canvas = this.scene.canvas.canvas;
103071
103049
  const saveWidth = canvas.clientWidth;
103072
103050
  const saveHeight = canvas.clientHeight;
103073
- const saveCssWidth = canvas.style.width;
103074
- const saveCssHeight = canvas.style.height;
103051
+ canvas.style.width;
103052
+ canvas.style.height;
103075
103053
 
103076
103054
  const width = params.width ? Math.floor(params.width) : canvas.width;
103077
103055
  const height = params.height ? Math.floor(params.height) : canvas.height;
103078
103056
 
103079
103057
  if (resize) {
103080
- canvas.style.width = width + "px";
103081
- canvas.style.height = height + "px";
103058
+ canvas.width = width;
103059
+ canvas.height = height;
103060
+ }
103061
+
103062
+ if (!this._snapshotBegun) {
103063
+ this.beginSnapshot();
103064
+ }
103065
+
103066
+ if (!params.includeGizmos) {
103067
+ this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
103082
103068
  }
103083
103069
 
103084
103070
  this.scene._renderer.renderSnapshot();
@@ -103086,8 +103072,6 @@ class Viewer {
103086
103072
  const imageDataURI = this.scene._renderer.readSnapshot(params);
103087
103073
 
103088
103074
  if (resize) {
103089
- canvas.style.width = saveCssWidth;
103090
- canvas.style.height = saveCssHeight;
103091
103075
  canvas.width = saveWidth;
103092
103076
  canvas.height = saveHeight;
103093
103077