@xeokit/xeokit-sdk 2.4.0-alpha-15 → 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.
@@ -327,7 +327,7 @@ class ContextMenu {
327
327
  * @param {Object} [cfg.context] The context, which is passed into the item callbacks. This can also be dynamically set on {@link ContextMenu#context}. This must be set before calling {@link ContextMenu#show}.
328
328
  * @param {Boolean} [cfg.enabled=true] Whether this ````ContextMenu```` is initially enabled. {@link ContextMenu#show} does nothing while this is ````false````.
329
329
  * @param {Boolean} [cfg.hideOnMouseDown=true] Whether this ````ContextMenu```` automatically hides whenever we mouse-down or tap anywhere in the page.
330
- * @param {Boolean} [cfg.hideOnMouseSelect=true] Whether this ````ContextMenu```` automatically hides after we select a menu item. Se false if we want the menu to remain shown and show any updates to its item titles, after we've selected an item.
330
+ * @param {Boolean} [cfg.hideOnAction=true] Whether this ````ContextMenu```` automatically hides after we select a menu item. Se false if we want the menu to remain shown and show any updates to its item titles, after we've selected an item.
331
331
  */
332
332
  constructor(cfg = {}) {
333
333
 
@@ -366,7 +366,7 @@ class ContextMenu {
366
366
  this.items = cfg.items;
367
367
  }
368
368
 
369
- this._hideOnMouseSelect = (cfg.hideOnMouseSelect !== false);
369
+ this._hideOnAction = (cfg.hideOnAction !== false);
370
370
 
371
371
  this.context = cfg.context;
372
372
  this.enabled = cfg.enabled !== false;
@@ -805,7 +805,7 @@ class ContextMenu {
805
805
  if (item.doAction) {
806
806
  item.doAction(self._context);
807
807
  }
808
- if (this._hideOnMouseSelect) {
808
+ if (this._hideOnAction) {
809
809
  self.hide();
810
810
  } else {
811
811
  self._updateItemsTitles();
@@ -8944,7 +8944,7 @@ class VBOSceneModelNode {
8944
8944
 
8945
8945
  }
8946
8946
 
8947
- const tempVec3a$1i = math.vec3();
8947
+ const tempVec3a$1h = math.vec3();
8948
8948
 
8949
8949
  /**
8950
8950
  * Given a view matrix and a relative-to-center (RTC) coordinate origin, returns a view matrix
@@ -9024,7 +9024,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
9024
9024
  */
9025
9025
  function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
9026
9026
 
9027
- const center = math.getPositionsCenter(worldPositions, tempVec3a$1i);
9027
+ const center = math.getPositionsCenter(worldPositions, tempVec3a$1h);
9028
9028
 
9029
9029
  const rtcCenterX = Math.round(center[0] / cellSize) * cellSize;
9030
9030
  const rtcCenterY = Math.round(center[1] / cellSize) * cellSize;
@@ -9060,7 +9060,7 @@ function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
9060
9060
  */
9061
9061
  function getPlaneRTCPos(dist, dir, rtcCenter, rtcPlanePos) {
9062
9062
  const rtcCenterToPlaneDist = math.dotVec3(dir, rtcCenter) + dist;
9063
- const dirNormalized = math.normalizeVec3(dir, tempVec3a$1i);
9063
+ const dirNormalized = math.normalizeVec3(dir, tempVec3a$1h);
9064
9064
  math.mulVec3Scalar(dirNormalized, -rtcCenterToPlaneDist, rtcPlanePos);
9065
9065
  return rtcPlanePos;
9066
9066
  }
@@ -11525,12 +11525,12 @@ class Annotation extends Marker {
11525
11525
  const canvasPos = this.canvasPos;
11526
11526
  this._marker.style.left = (Math.floor(left + canvasPos[0]) - 12) + "px";
11527
11527
  this._marker.style.top = (Math.floor(top + canvasPos[1]) - 12) + "px";
11528
- this._marker.style["z-index"] = cfg._markerZIndex;
11528
+ this._marker.style["z-index"] = 90005 + Math.floor(this._viewPos[2]) + 1;
11529
11529
  const offsetX = 20;
11530
11530
  const offsetY = -17;
11531
11531
  this._label.style.left = 20 + Math.floor(left + canvasPos[0] + offsetX) + "px";
11532
11532
  this._label.style.top = Math.floor(top + canvasPos[1] + offsetY) + "px";
11533
- this._label.style["z-index"] = cfg._labelZIndex;
11533
+ this._label.style["z-index"] = 90005 + Math.floor(this._viewPos[2]) + 1;
11534
11534
  }
11535
11535
 
11536
11536
  /**
@@ -11691,8 +11691,8 @@ class Annotation extends Marker {
11691
11691
  }
11692
11692
  }
11693
11693
 
11694
- const tempVec3a$1h = math.vec3();
11695
- const tempVec3b$d = math.vec3();
11694
+ const tempVec3a$1g = math.vec3();
11695
+ const tempVec3b$c = math.vec3();
11696
11696
  const tempVec3c$9 = math.vec3();
11697
11697
 
11698
11698
  /**
@@ -12067,8 +12067,6 @@ class AnnotationsPlugin extends Plugin {
12067
12067
  * @param {String} [cfg.id="Annotations"] Optional ID for this plugin, so that we can find it within {@link Viewer#plugins}.
12068
12068
  * @param {String} [cfg.markerHTML] HTML text template for Annotation markers. Defaults to ````<div></div>````. Ignored on {@link Annotation}s configured with a ````markerElementId````.
12069
12069
  * @param {String} [cfg.labelHTML] HTML text template for Annotation labels. Defaults to ````<div></div>````. Ignored on {@link Annotation}s configured with a ````labelElementId````.
12070
- * @param {Number} [cfg.markerZIndex] Custom value for Annotation markers z-index. Defaults to ````90005 + Math.floor(this._viewPos[2]) + 1````.
12071
- * @param {Number} [cfg.labelZIndex] Custom value for Annotation labels z-index. Defaults to ````90005 + Math.floor(this._viewPos[2]) + 1````.
12072
12070
  * @param {HTMLElement} [cfg.container] Container DOM element for markers and labels. Defaults to ````document.body````.
12073
12071
  * @param {{String:(String|Number)}} [cfg.values={}] Map of default values to insert into the HTML templates for the marker and label.
12074
12072
  * @param {Number} [cfg.surfaceOffset=0.3] The amount by which each {@link Annotation} is offset from the surface of
@@ -12077,12 +12075,10 @@ class AnnotationsPlugin extends Plugin {
12077
12075
  constructor(viewer, cfg) {
12078
12076
 
12079
12077
  super("Annotations", viewer);
12080
- const randomZIndex = 90005 + Math.floor(this._viewPos[2]) + 1;
12078
+
12081
12079
  this._labelHTML = cfg.labelHTML || "<div></div>";
12082
12080
  this._markerHTML = cfg.markerHTML || "<div></div>";
12083
12081
  this._container = cfg.container || document.body;
12084
- this._markerZIndex = cfg.markerZIndex || randomZIndex;
12085
- this._labelZIndex = cfg.labelZIndex || randomZIndex;
12086
12082
  this._values = cfg.values || {};
12087
12083
 
12088
12084
  /**
@@ -12158,8 +12154,6 @@ class AnnotationsPlugin extends Plugin {
12158
12154
  * @param {Number[]} [params.look] Optional World-space position for {@link Camera#look}, used when this Annotation is associated with a {@link Camera} position.
12159
12155
  * @param {Number[]} [params.up] Optional World-space position for {@link Camera#up}, used when this Annotation is associated with a {@link Camera} position.
12160
12156
  * @param {String} [params.projection] Optional projection type for {@link Camera#projection}, used when this Annotation is associated with a {@link Camera} position.
12161
- * @param {Number} [cfg.markerZIndex] Custom value for Annotation markers z-index. Defaults to ````90005 + Math.floor(this._viewPos[2]) + 1````.
12162
- * @param {Number} [cfg.labelZIndex] Custom value for Annotation labels z-index. Defaults to ````90005 + Math.floor(this._viewPos[2]) + 1````.
12163
12157
  * @returns {Annotation} The new {@link Annotation}.
12164
12158
  */
12165
12159
  createAnnotation(params) {
@@ -12175,8 +12169,8 @@ class AnnotationsPlugin extends Plugin {
12175
12169
  if (!pickResult.worldPos || !pickResult.worldNormal) {
12176
12170
  this.error("Param 'pickResult' does not have both worldPos and worldNormal");
12177
12171
  } else {
12178
- const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1h);
12179
- const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$d);
12172
+ const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1g);
12173
+ const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$c);
12180
12174
  const offsetWorldPos = math.addVec3(pickResult.worldPos, offsetVec, tempVec3c$9);
12181
12175
  worldPos = offsetWorldPos;
12182
12176
  entity = pickResult.entity;
@@ -12211,9 +12205,7 @@ class AnnotationsPlugin extends Plugin {
12211
12205
  markerElement: markerElement,
12212
12206
  labelElement: labelElement,
12213
12207
  markerHTML: params.markerHTML || this._markerHTML,
12214
- markerZIndex : params.markerZIndex || this._markerZIndex,
12215
12208
  labelHTML: params.labelHTML || this._labelHTML,
12216
- labelZIndex : params.labelZIndex || this._labelZIndex,
12217
12209
  occludable: params.occludable,
12218
12210
  values: utils.apply(params.values, utils.apply(this._values, {})),
12219
12211
  markerShown: params.markerShown,
@@ -14374,7 +14366,7 @@ const MARKER_COLOR = math.vec3([1.0, 0.0, 0.0]);
14374
14366
  const POINT_SIZE = 20;
14375
14367
  const MARKER_SPRITE_CLIPZ_OFFSET = -0.001; // Amount that we offset sprite clip Z coords to raise them from surfaces
14376
14368
 
14377
- const tempVec3a$1g = math.vec3();
14369
+ const tempVec3a$1f = math.vec3();
14378
14370
 
14379
14371
  /**
14380
14372
  * Manages occlusion testing. Private member of a Renderer.
@@ -14711,7 +14703,7 @@ class OcclusionTester {
14711
14703
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
14712
14704
  if (active) {
14713
14705
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
14714
- gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1g));
14706
+ gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f));
14715
14707
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
14716
14708
  }
14717
14709
  }
@@ -18716,7 +18708,7 @@ class CustomProjection extends Component {
18716
18708
  }
18717
18709
 
18718
18710
  const tempVec3$6 = math.vec3();
18719
- const tempVec3b$c = math.vec3();
18711
+ const tempVec3b$b = math.vec3();
18720
18712
  const tempVec3c$8 = math.vec3();
18721
18713
  const tempVec3d$4 = math.vec3();
18722
18714
  const tempVec3e$3 = math.vec3();
@@ -19026,7 +19018,7 @@ class Camera extends Component {
19026
19018
  orbitYaw(angleInc) {
19027
19019
  let lookEyeVec = math.subVec3(this._eye, this._look, tempVec3$6);
19028
19020
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19029
- lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$c);
19021
+ lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$b);
19030
19022
  this.eye = math.addVec3(this._look, lookEyeVec, tempVec3c$8); // Set eye position as 'look' plus 'eye' vector
19031
19023
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4); // Rotate 'up' vector
19032
19024
  }
@@ -19044,7 +19036,7 @@ class Camera extends Component {
19044
19036
  }
19045
19037
  }
19046
19038
  let eye2 = math.subVec3(this._eye, this._look, tempVec3$6);
19047
- const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
19039
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19048
19040
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19049
19041
  eye2 = math.transformPoint3(tempMat, eye2, tempVec3d$4);
19050
19042
  this.up = math.transformPoint3(tempMat, this._up, tempVec3e$3);
@@ -19059,7 +19051,7 @@ class Camera extends Component {
19059
19051
  yaw(angleInc) {
19060
19052
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19061
19053
  math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
19062
- look2 = math.transformPoint3(tempMat, look2, tempVec3b$c);
19054
+ look2 = math.transformPoint3(tempMat, look2, tempVec3b$b);
19063
19055
  this.look = math.addVec3(look2, this._eye, tempVec3c$8);
19064
19056
  if (this._gimbalLock) {
19065
19057
  this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4);
@@ -19079,7 +19071,7 @@ class Camera extends Component {
19079
19071
  }
19080
19072
  }
19081
19073
  let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
19082
- const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
19074
+ const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
19083
19075
  math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
19084
19076
  this.up = math.transformPoint3(tempMat, this._up, tempVec3f$3);
19085
19077
  look2 = math.transformPoint3(tempMat, look2, tempVec3d$4);
@@ -19096,7 +19088,7 @@ class Camera extends Component {
19096
19088
  const vec = [0, 0, 0];
19097
19089
  let v;
19098
19090
  if (pan[0] !== 0) {
19099
- const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$c));
19091
+ const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$b));
19100
19092
  v = math.mulVec3Scalar(left, pan[0]);
19101
19093
  vec[0] += v[0];
19102
19094
  vec[1] += v[1];
@@ -19125,7 +19117,7 @@ class Camera extends Component {
19125
19117
  */
19126
19118
  zoom(delta) {
19127
19119
  const vec = math.subVec3(this._eye, this._look, tempVec3$6);
19128
- const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$c));
19120
+ const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$b));
19129
19121
  const newLenLook = Math.abs(lenLook + delta);
19130
19122
  if (newLenLook < 0.5) {
19131
19123
  return;
@@ -19587,7 +19579,7 @@ class Camera extends Component {
19587
19579
  }
19588
19580
 
19589
19581
  const tempVec4$9 = math.vec4();
19590
- const tempVec3a$1f = math.vec3();
19582
+ const tempVec3a$1e = math.vec3();
19591
19583
 
19592
19584
  /**
19593
19585
  * @private
@@ -19674,7 +19666,7 @@ class TrianglesDataTextureColorRenderer {
19674
19666
  if (active) {
19675
19667
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
19676
19668
  if (origin) {
19677
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f);
19669
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
19678
19670
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
19679
19671
  } else {
19680
19672
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20201,7 +20193,7 @@ class TrianglesDataTextureColorRenderer {
20201
20193
 
20202
20194
  const defaultColor$6 = new Float32Array([1, 1, 1]);
20203
20195
  math.vec4();
20204
- const tempVec3a$1e = math.vec3();
20196
+ const tempVec3a$1d = math.vec3();
20205
20197
 
20206
20198
  /**
20207
20199
  * @private
@@ -20309,7 +20301,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20309
20301
  if (active) {
20310
20302
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20311
20303
  if (origin) {
20312
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
20304
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20313
20305
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20314
20306
  } else {
20315
20307
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -20665,7 +20657,7 @@ class TrianglesDataTextureSilhouetteRenderer {
20665
20657
  }
20666
20658
  }
20667
20659
 
20668
- const tempVec3a$1d = math.vec3();
20660
+ const tempVec3a$1c = math.vec3();
20669
20661
  const defaultColor$5 = new Float32Array([0,0,0,1]);
20670
20662
 
20671
20663
  /**
@@ -20765,7 +20757,7 @@ class TrianglesDataTextureEdgesRenderer {
20765
20757
  if (active) {
20766
20758
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
20767
20759
  if (origin) {
20768
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
20760
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
20769
20761
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
20770
20762
  } else {
20771
20763
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21084,7 +21076,7 @@ class TrianglesDataTextureEdgesRenderer {
21084
21076
  }
21085
21077
  }
21086
21078
 
21087
- const tempVec3a$1c = math.vec3();
21079
+ const tempVec3a$1b = math.vec3();
21088
21080
 
21089
21081
  /**
21090
21082
  * @private
@@ -21158,7 +21150,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21158
21150
  if (active) {
21159
21151
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21160
21152
  if (origin) {
21161
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
21153
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21162
21154
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21163
21155
  } else {
21164
21156
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21486,7 +21478,7 @@ class TrianglesDataTextureEdgesColorRenderer {
21486
21478
  }
21487
21479
  }
21488
21480
 
21489
- const tempVec3a$1b = math.vec3();
21481
+ const tempVec3a$1a = math.vec3();
21490
21482
 
21491
21483
  /**
21492
21484
  * @private
@@ -21573,7 +21565,7 @@ class TrianglesDataTexturePickMeshRenderer {
21573
21565
  if (active) {
21574
21566
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
21575
21567
  if (origin) {
21576
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
21568
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
21577
21569
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
21578
21570
  } else {
21579
21571
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -21929,7 +21921,7 @@ class TrianglesDataTexturePickMeshRenderer {
21929
21921
  }
21930
21922
  }
21931
21923
 
21932
- const tempVec3a$1a = math.vec3();
21924
+ const tempVec3a$19 = math.vec3();
21933
21925
 
21934
21926
  /**
21935
21927
  * @private
@@ -22021,7 +22013,7 @@ class TrianglesDataTexturePickDepthRenderer {
22021
22013
  if (active) {
22022
22014
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22023
22015
  if (origin) {
22024
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
22016
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22025
22017
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22026
22018
  } else {
22027
22019
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -22380,7 +22372,7 @@ class TrianglesDataTexturePickDepthRenderer {
22380
22372
  }
22381
22373
  }
22382
22374
 
22383
- const tempVec3a$19 = math.vec3();
22375
+ const tempVec3a$18 = math.vec3();
22384
22376
 
22385
22377
  /**
22386
22378
  * @private
@@ -22472,7 +22464,7 @@ class TrianglesDataTexturePickNormalsRenderer {
22472
22464
  if (active) {
22473
22465
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
22474
22466
  if (origin) {
22475
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
22467
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
22476
22468
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
22477
22469
  } else {
22478
22470
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23036,7 +23028,7 @@ class TrianglesDataTextureOcclusionRenderer {
23036
23028
  }
23037
23029
 
23038
23030
  math.vec4();
23039
- const tempVec3a$18 = math.vec3();
23031
+ const tempVec3a$17 = math.vec3();
23040
23032
 
23041
23033
  /**
23042
23034
  * @private
@@ -23121,7 +23113,7 @@ class TrianglesDataTextureDepthRenderer {
23121
23113
  if (active) {
23122
23114
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23123
23115
  if (origin) {
23124
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
23116
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23125
23117
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23126
23118
  } else {
23127
23119
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23492,7 +23484,7 @@ class TrianglesDataTextureDepthRenderer {
23492
23484
  }
23493
23485
  }
23494
23486
 
23495
- const tempVec3a$17 = math.vec3();
23487
+ const tempVec3a$16 = math.vec3();
23496
23488
 
23497
23489
  /**
23498
23490
  * @private
@@ -23555,7 +23547,7 @@ class TrianglesDataTextureNormalsRenderer {
23555
23547
  if (active) {
23556
23548
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
23557
23549
  if (origin) {
23558
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
23550
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
23559
23551
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
23560
23552
  } else {
23561
23553
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -23985,7 +23977,7 @@ class TrianglesDataTextureShadowRenderer {
23985
23977
  }
23986
23978
 
23987
23979
  const tempVec4$8 = math.vec4();
23988
- const tempVec3a$16 = math.vec3();
23980
+ const tempVec3a$15 = math.vec3();
23989
23981
 
23990
23982
  const TEXTURE_DECODE_FUNCS$2 = {
23991
23983
  "linear": "linearToLinear",
@@ -24056,7 +24048,7 @@ class TrianglesDataTextureColorQualityRenderer {
24056
24048
  if (active) {
24057
24049
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24058
24050
  if (origin) {
24059
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
24051
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24060
24052
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24061
24053
  } else {
24062
24054
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -24795,7 +24787,7 @@ class TrianglesDataTextureColorQualityRenderer {
24795
24787
  }
24796
24788
  }
24797
24789
 
24798
- const tempVec3a$15 = math.vec3();
24790
+ const tempVec3a$14 = math.vec3();
24799
24791
 
24800
24792
  /**
24801
24793
  * @private
@@ -24909,7 +24901,7 @@ class TrianglesDataTexturePickNormalsFlatRenderer {
24909
24901
  if (active) {
24910
24902
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
24911
24903
  if (origin) {
24912
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
24904
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$14);
24913
24905
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
24914
24906
  } else {
24915
24907
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -27646,8 +27638,8 @@ const tempUint8Array4 = new Uint8Array (4);
27646
27638
 
27647
27639
  const tempFloat32Array3 = new Float32Array (3);
27648
27640
 
27649
- const tempVec3a$14 = math.vec3();
27650
- const tempVec3b$b = math.vec3();
27641
+ const tempVec3a$13 = math.vec3();
27642
+ const tempVec3b$a = math.vec3();
27651
27643
  const tempVec3c$7 = math.vec3();
27652
27644
  const tempVec3d$3 = math.vec3();
27653
27645
  const tempVec3e$2 = math.vec3();
@@ -29272,8 +29264,8 @@ class TrianglesDataTextureLayer {
29272
29264
  const origin = state.origin;
29273
29265
  const offset = portion.offset;
29274
29266
 
29275
- const rtcRayOrigin = tempVec3a$14;
29276
- const rtcRayDir = tempVec3b$b;
29267
+ const rtcRayOrigin = tempVec3a$13;
29268
+ const rtcRayDir = tempVec3b$a;
29277
29269
 
29278
29270
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$7) : worldRayOrigin); // World -> RTC
29279
29271
  rtcRayDir.set(worldRayDir);
@@ -32122,7 +32114,7 @@ class ViewFrustumCullingManager {
32122
32114
 
32123
32115
  WEBGL_INFO.SUPPORTED_EXTENSIONS["ANGLE_instanced_arrays"];
32124
32116
 
32125
- const tempVec3a$13 = math.vec3();
32117
+ const tempVec3a$12 = math.vec3();
32126
32118
  const tempMat4$3 = math.mat4();
32127
32119
 
32128
32120
  const defaultScale$1 = math.vec3([1, 1, 1]);
@@ -33094,7 +33086,7 @@ class DataTextureSceneModel extends Component {
33094
33086
  }
33095
33087
 
33096
33088
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
33097
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$13) : this._origin;
33089
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$12) : this._origin;
33098
33090
 
33099
33091
  switch (primitive) {
33100
33092
  case "triangles":
@@ -33358,7 +33350,7 @@ class DataTextureSceneModel extends Component {
33358
33350
  if (!origin) {
33359
33351
  origin = cfgOrigin;
33360
33352
  } else {
33361
- origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$13);
33353
+ origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$12);
33362
33354
  }
33363
33355
  } else {
33364
33356
  origin = this._origin;
@@ -35329,8 +35321,11 @@ const Renderer = function (scene, options) {
35329
35321
  *
35330
35322
  * Exit snapshot mode using endSnapshot().
35331
35323
  */
35332
- this.beginSnapshot = function () {
35324
+ this.beginSnapshot = function (params={}) {
35333
35325
  const snapshotBuffer = renderBufferManager.getRenderBuffer("snapshot");
35326
+ if (params.width && params.height) {
35327
+ snapshotBuffer.setSize([params.width, params.height]);
35328
+ }
35334
35329
  snapshotBuffer.bind();
35335
35330
  snapshotBuffer.clear();
35336
35331
  snapshotBound = true;
@@ -40641,11 +40636,7 @@ class SAO extends Component {
40641
40636
 
40642
40637
  super(owner, cfg);
40643
40638
 
40644
- const ua = navigator.userAgent.match(/(opera|chrome|safari|firefox|msie|mobile)\/?\s*(\.?\d+(\.\d+)*)/i);
40645
- const isSafari = (ua && ua[1].toLowerCase() === "safari");
40646
-
40647
- this._supported = (!isSafari) &&
40648
- WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
40639
+ this._supported = WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
40649
40640
 
40650
40641
  this.enabled = cfg.enabled;
40651
40642
  this.kernelRadius = cfg.kernelRadius;
@@ -45987,7 +45978,7 @@ function buildFragmentDraw(mesh) {
45987
45978
  * @author xeolabs / https://github.com/xeolabs
45988
45979
  */
45989
45980
 
45990
- const tempVec3a$12 = math.vec3();
45981
+ const tempVec3a$11 = math.vec3();
45991
45982
 
45992
45983
  const ids$2 = new Map$1({});
45993
45984
 
@@ -46086,7 +46077,7 @@ DrawRenderer.prototype.drawMesh = function (frameCtx, mesh) {
46086
46077
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
46087
46078
  if (active) {
46088
46079
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
46089
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$12) : sectionPlane.pos);
46080
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
46090
46081
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
46091
46082
  }
46092
46083
  }
@@ -47224,7 +47215,7 @@ function buildFragment$5(mesh) {
47224
47215
 
47225
47216
  const ids$1 = new Map$1({});
47226
47217
 
47227
- const tempVec3a$11 = math.vec3();
47218
+ const tempVec3a$10 = math.vec3();
47228
47219
 
47229
47220
  /**
47230
47221
  * @private
@@ -47308,7 +47299,7 @@ EmphasisFillRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47308
47299
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47309
47300
  if (active) {
47310
47301
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47311
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
47302
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47312
47303
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47313
47304
  }
47314
47305
  }
@@ -47644,7 +47635,7 @@ function buildFragment$4(mesh) {
47644
47635
 
47645
47636
  const ids = new Map$1({});
47646
47637
 
47647
- const tempVec3a$10 = math.vec3();
47638
+ const tempVec3a$$ = math.vec3();
47648
47639
 
47649
47640
  /**
47650
47641
  * @private
@@ -47727,7 +47718,7 @@ EmphasisEdgesRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
47727
47718
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
47728
47719
  if (active) {
47729
47720
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
47730
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
47721
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
47731
47722
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
47732
47723
  }
47733
47724
  }
@@ -48022,7 +48013,7 @@ function buildFragment$3(mesh) {
48022
48013
  * @author xeolabs / https://github.com/xeolabs
48023
48014
  */
48024
48015
 
48025
- const tempVec3a$$ = math.vec3();
48016
+ const tempVec3a$_ = math.vec3();
48026
48017
 
48027
48018
  // No ID, because there is exactly one PickMeshRenderer per scene
48028
48019
 
@@ -48106,7 +48097,7 @@ PickMeshRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48106
48097
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48107
48098
  if (active) {
48108
48099
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48109
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
48100
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48110
48101
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48111
48102
  }
48112
48103
  }
@@ -48339,7 +48330,7 @@ function buildFragment$2(mesh) {
48339
48330
  * @author xeolabs / https://github.com/xeolabs
48340
48331
  */
48341
48332
 
48342
- const tempVec3a$_ = math.vec3();
48333
+ const tempVec3a$Z = math.vec3();
48343
48334
 
48344
48335
  /**
48345
48336
  * @private
@@ -48431,7 +48422,7 @@ PickTriangleRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48431
48422
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48432
48423
  if (active) {
48433
48424
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48434
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
48425
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48435
48426
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48436
48427
  }
48437
48428
  }
@@ -48668,7 +48659,7 @@ function buildFragment$1(mesh) {
48668
48659
  * @author xeolabs / https://github.com/xeolabs
48669
48660
  */
48670
48661
 
48671
- const tempVec3a$Z = math.vec3();
48662
+ const tempVec3a$Y = math.vec3();
48672
48663
 
48673
48664
  // No ID, because there is exactly one PickMeshRenderer per scene
48674
48665
 
@@ -48776,7 +48767,7 @@ OcclusionRenderer.prototype.drawMesh = function (frameCtx, mesh) {
48776
48767
  gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
48777
48768
  if (active) {
48778
48769
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
48779
- gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
48770
+ gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Y) : sectionPlane.pos);
48780
48771
  gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
48781
48772
  }
48782
48773
  }
@@ -61378,8 +61369,8 @@ class LineSet extends Component {
61378
61369
  }
61379
61370
 
61380
61371
  const tempVec3$4 = math.vec3();
61381
- const tempVec3a$Y = math.vec3();
61382
- const tempVec3b$a = math.vec3();
61372
+ const tempVec3a$X = math.vec3();
61373
+ const tempVec3b$9 = math.vec3();
61383
61374
  const tempVec3c$6 = math.vec3();
61384
61375
 
61385
61376
  /**
@@ -62059,8 +62050,8 @@ class BCFViewpointsPlugin extends Plugin {
62059
62050
  bcfViewpoint.bitmaps.forEach(function (e) {
62060
62051
  const bitmap_type = e.bitmap_type || "jpg"; // "jpg" | "png"
62061
62052
  const bitmap_data = e.bitmap_data; // base64
62062
- let location = xyzObjectToArray(e.location, tempVec3a$Y);
62063
- let normal = xyzObjectToArray(e.normal, tempVec3b$a);
62053
+ let location = xyzObjectToArray(e.location, tempVec3a$X);
62054
+ let normal = xyzObjectToArray(e.normal, tempVec3b$9);
62064
62055
  let up = xyzObjectToArray(e.up, tempVec3c$6);
62065
62056
  let height = e.height || 1;
62066
62057
  if (!bitmap_type) {
@@ -63949,7 +63940,7 @@ class SplineCurve extends Curve {
63949
63940
  }
63950
63941
  }
63951
63942
 
63952
- const tempVec3a$X = math.vec3();
63943
+ const tempVec3a$W = math.vec3();
63953
63944
 
63954
63945
  /**
63955
63946
  * @desc Defines a sequence of frames along which a {@link CameraPathAnimation} can animate a {@link Camera}.
@@ -64081,9 +64072,9 @@ class CameraPath extends Component {
64081
64072
  t = t / (this._frames[this._frames.length - 1].t - this._frames[0].t);
64082
64073
  t = t < 0.0 ? 0.0 : (t > 1.0 ? 1.0 : t);
64083
64074
 
64084
- camera.eye = this._eyeCurve.getPoint(t, tempVec3a$X);
64085
- camera.look = this._lookCurve.getPoint(t, tempVec3a$X);
64086
- camera.up = this._upCurve.getPoint(t, tempVec3a$X);
64075
+ camera.eye = this._eyeCurve.getPoint(t, tempVec3a$W);
64076
+ camera.look = this._lookCurve.getPoint(t, tempVec3a$W);
64077
+ camera.up = this._upCurve.getPoint(t, tempVec3a$W);
64087
64078
  }
64088
64079
 
64089
64080
  /**
@@ -65122,7 +65113,7 @@ CameraPathAnimation.PLAYING = 2;
65122
65113
  CameraPathAnimation.PLAYING_TO = 3;
65123
65114
 
65124
65115
  const tempVec3$2 = math.vec3();
65125
- const tempVec3b$9 = math.vec3();
65116
+ const tempVec3b$8 = math.vec3();
65126
65117
  math.vec3();
65127
65118
  const zeroVec$1 = math.vec3([0, -1, 0]);
65128
65119
  const tempQuat = math.vec4([0, 0, 0, 1]);
@@ -65550,7 +65541,7 @@ class ImagePlane extends Component {
65550
65541
  const dist = -math.dotVec3(negDir, tempVec3$2);
65551
65542
 
65552
65543
  math.normalizeVec3(negDir);
65553
- math.mulVec3Scalar(negDir, dist, tempVec3b$9);
65544
+ math.mulVec3Scalar(negDir, dist, tempVec3b$8);
65554
65545
  math.vec3PairToQuaternion(zeroVec$1, dir, tempQuat);
65555
65546
 
65556
65547
  this._node.quaternion = tempQuat;
@@ -66716,8 +66707,8 @@ class SpriteMarker extends Marker {
66716
66707
  }
66717
66708
  }
66718
66709
 
66719
- const tempVec3a$W = math.vec3();
66720
- const tempVec3b$8 = math.vec3();
66710
+ const tempVec3a$V = math.vec3();
66711
+ const tempVec3b$7 = math.vec3();
66721
66712
  const tempMat4a = math.mat4();
66722
66713
 
66723
66714
  /**
@@ -66794,8 +66785,8 @@ function frustumIntersectsAABB3(frustum, aabb) {
66794
66785
 
66795
66786
  let ret = Frustum.INSIDE;
66796
66787
 
66797
- const min = tempVec3a$W;
66798
- const max = tempVec3b$8;
66788
+ const min = tempVec3a$V;
66789
+ const max = tempVec3b$7;
66799
66790
 
66800
66791
  min[0] = aabb[0];
66801
66792
  min[1] = aabb[1];
@@ -69376,7 +69367,7 @@ const RENDER_PASSES = {
69376
69367
  };
69377
69368
 
69378
69369
  const tempVec4$7 = math.vec4();
69379
- const tempVec3a$V = math.vec3();
69370
+ const tempVec3a$U = math.vec3();
69380
69371
 
69381
69372
  /**
69382
69373
  * @private
@@ -69441,7 +69432,7 @@ class TrianglesBatchingColorRenderer {
69441
69432
  if (active) {
69442
69433
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69443
69434
  if (origin) {
69444
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$V);
69435
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69445
69436
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69446
69437
  } else {
69447
69438
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -69869,7 +69860,7 @@ class TrianglesBatchingColorRenderer {
69869
69860
  }
69870
69861
 
69871
69862
  const tempVec4$6 = math.vec4();
69872
- const tempVec3a$U = math.vec3();
69863
+ const tempVec3a$T = math.vec3();
69873
69864
 
69874
69865
  /**
69875
69866
  * @private
@@ -69931,7 +69922,7 @@ class TrianglesBatchingFlatColorRenderer {
69931
69922
  if (active) {
69932
69923
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
69933
69924
  if (origin) {
69934
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
69925
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
69935
69926
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
69936
69927
  } else {
69937
69928
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70348,7 +70339,7 @@ class TrianglesBatchingFlatColorRenderer {
70348
70339
  }
70349
70340
 
70350
70341
  const defaultColor$4 = new Float32Array([1, 1, 1]);
70351
- const tempVec3a$T = math.vec3();
70342
+ const tempVec3a$S = math.vec3();
70352
70343
 
70353
70344
  /**
70354
70345
  * @private
@@ -70432,7 +70423,7 @@ class TrianglesBatchingSilhouetteRenderer {
70432
70423
  if (active) {
70433
70424
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70434
70425
  if (origin) {
70435
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
70426
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70436
70427
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70437
70428
  } else {
70438
70429
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70669,7 +70660,7 @@ class TrianglesBatchingSilhouetteRenderer {
70669
70660
  }
70670
70661
  }
70671
70662
 
70672
- const tempVec3a$S = math.vec3();
70663
+ const tempVec3a$R = math.vec3();
70673
70664
  const defaultColor$3 = new Float32Array([0,0,0,1]);
70674
70665
 
70675
70666
  /**
@@ -70752,7 +70743,7 @@ class TrianglesBatchingEdgesRenderer {
70752
70743
  if (active) {
70753
70744
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
70754
70745
  if (origin) {
70755
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
70746
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
70756
70747
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
70757
70748
  } else {
70758
70749
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -70980,7 +70971,7 @@ class TrianglesBatchingEdgesRenderer {
70980
70971
  }
70981
70972
  }
70982
70973
 
70983
- const tempVec3a$R = math.vec3();
70974
+ const tempVec3a$Q = math.vec3();
70984
70975
 
70985
70976
  /**
70986
70977
  * @private
@@ -71040,7 +71031,7 @@ class TrianglesBatchingEdgesColorRenderer {
71040
71031
  if (active) {
71041
71032
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71042
71033
  if (origin) {
71043
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
71034
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71044
71035
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71045
71036
  } else {
71046
71037
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71268,7 +71259,7 @@ class TrianglesBatchingEdgesColorRenderer {
71268
71259
  }
71269
71260
  }
71270
71261
 
71271
- const tempVec3a$Q = math.vec3();
71262
+ const tempVec3a$P = math.vec3();
71272
71263
 
71273
71264
  /**
71274
71265
  * @private
@@ -71334,7 +71325,7 @@ class TrianglesBatchingPickMeshRenderer {
71334
71325
  if (active) {
71335
71326
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71336
71327
  if (origin) {
71337
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
71328
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71338
71329
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71339
71330
  } else {
71340
71331
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71564,7 +71555,7 @@ class TrianglesBatchingPickMeshRenderer {
71564
71555
  }
71565
71556
  }
71566
71557
 
71567
- const tempVec3a$P = math.vec3();
71558
+ const tempVec3a$O = math.vec3();
71568
71559
 
71569
71560
  /**
71570
71561
  * @private
@@ -71635,7 +71626,7 @@ class TrianglesBatchingPickDepthRenderer {
71635
71626
  if (active) {
71636
71627
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71637
71628
  if (origin) {
71638
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
71629
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71639
71630
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71640
71631
  } else {
71641
71632
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -71873,7 +71864,7 @@ class TrianglesBatchingPickDepthRenderer {
71873
71864
  }
71874
71865
  }
71875
71866
 
71876
- const tempVec3a$O = math.vec3();
71867
+ const tempVec3a$N = math.vec3();
71877
71868
 
71878
71869
  /**
71879
71870
  * @private
@@ -71941,7 +71932,7 @@ class TrianglesBatchingPickNormalsRenderer {
71941
71932
  if (active) {
71942
71933
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
71943
71934
  if (origin) {
71944
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
71935
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
71945
71936
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
71946
71937
  } else {
71947
71938
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72166,7 +72157,7 @@ class TrianglesBatchingPickNormalsRenderer {
72166
72157
  }
72167
72158
  }
72168
72159
 
72169
- const tempVec3a$N = math.vec3();
72160
+ const tempVec3a$M = math.vec3();
72170
72161
 
72171
72162
  /**
72172
72163
  * @private
@@ -72226,7 +72217,7 @@ class TrianglesBatchingOcclusionRenderer {
72226
72217
  if (active) {
72227
72218
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72228
72219
  if (origin) {
72229
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
72220
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72230
72221
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72231
72222
  } else {
72232
72223
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72449,7 +72440,7 @@ class TrianglesBatchingOcclusionRenderer {
72449
72440
  }
72450
72441
  }
72451
72442
 
72452
- const tempVec3a$M = math.vec3();
72443
+ const tempVec3a$L = math.vec3();
72453
72444
 
72454
72445
  /**
72455
72446
  * @private
@@ -72509,7 +72500,7 @@ class TrianglesBatchingDepthRenderer {
72509
72500
  if (active) {
72510
72501
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72511
72502
  if (origin) {
72512
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
72503
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72513
72504
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72514
72505
  } else {
72515
72506
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -72733,7 +72724,7 @@ class TrianglesBatchingDepthRenderer {
72733
72724
  }
72734
72725
  }
72735
72726
 
72736
- const tempVec3a$L = math.vec3();
72727
+ const tempVec3a$K = math.vec3();
72737
72728
 
72738
72729
  /**
72739
72730
  * @private
@@ -72796,7 +72787,7 @@ class TrianglesBatchingNormalsRenderer {
72796
72787
  if (active) {
72797
72788
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
72798
72789
  if (origin) {
72799
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
72790
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
72800
72791
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
72801
72792
  } else {
72802
72793
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73036,7 +73027,7 @@ class TrianglesBatchingNormalsRenderer {
73036
73027
  }
73037
73028
  }
73038
73029
 
73039
- const tempVec3a$K = math.vec3();
73030
+ const tempVec3a$J = math.vec3();
73040
73031
 
73041
73032
  /**
73042
73033
  * Renders BatchingLayer fragment depths to a shadow map.
@@ -73105,7 +73096,7 @@ class TrianglesBatchingShadowRenderer {
73105
73096
  if (active) {
73106
73097
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73107
73098
  if (origin) {
73108
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
73099
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73109
73100
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73110
73101
  } else {
73111
73102
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -73277,7 +73268,7 @@ class TrianglesBatchingShadowRenderer {
73277
73268
  }
73278
73269
 
73279
73270
  const tempVec4$5 = math.vec4();
73280
- const tempVec3a$J = math.vec3();
73271
+ const tempVec3a$I = math.vec3();
73281
73272
 
73282
73273
  // const TEXTURE_DECODE_FUNCS = {};
73283
73274
  // TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -73350,7 +73341,7 @@ class TrianglesBatchingPBRRenderer {
73350
73341
  if (active) {
73351
73342
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
73352
73343
  if (origin) {
73353
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
73344
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
73354
73345
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
73355
73346
  } else {
73356
73347
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74155,7 +74146,7 @@ class TrianglesBatchingPBRRenderer {
74155
74146
  }
74156
74147
  }
74157
74148
 
74158
- const tempVec3a$I = math.vec3();
74149
+ const tempVec3a$H = math.vec3();
74159
74150
 
74160
74151
  /**
74161
74152
  * @private
@@ -74222,7 +74213,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74222
74213
  if (active) {
74223
74214
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74224
74215
  if (origin) {
74225
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
74216
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74226
74217
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74227
74218
  } else {
74228
74219
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -74432,7 +74423,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
74432
74423
  }
74433
74424
 
74434
74425
  const tempVec4$4 = math.vec4();
74435
- const tempVec3a$H = math.vec3();
74426
+ const tempVec3a$G = math.vec3();
74436
74427
 
74437
74428
  /**
74438
74429
  * @private
@@ -74497,7 +74488,7 @@ class TrianglesBatchingColorTextureRenderer {
74497
74488
  if (active) {
74498
74489
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
74499
74490
  if (origin) {
74500
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
74491
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$G);
74501
74492
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
74502
74493
  } else {
74503
74494
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -75503,8 +75494,8 @@ const tempVec4b$a = math.vec4([0, 0, 0, 1]);
75503
75494
  const tempVec4c$7 = math.vec4([0, 0, 0, 1]);
75504
75495
  const tempOBB3$2 = math.OBB3();
75505
75496
 
75506
- const tempVec3a$G = math.vec3();
75507
- const tempVec3b$7 = math.vec3();
75497
+ const tempVec3a$F = math.vec3();
75498
+ const tempVec3b$6 = math.vec3();
75508
75499
  const tempVec3c$5 = math.vec3();
75509
75500
  const tempVec3d$2 = math.vec3();
75510
75501
  const tempVec3e$1 = math.vec3();
@@ -76683,8 +76674,8 @@ class TrianglesBatchingLayer {
76683
76674
  const origin = state.origin;
76684
76675
  const offset = portion.offset;
76685
76676
 
76686
- const rtcRayOrigin = tempVec3a$G;
76687
- const rtcRayDir = tempVec3b$7;
76677
+ const rtcRayOrigin = tempVec3a$F;
76678
+ const rtcRayDir = tempVec3b$6;
76688
76679
 
76689
76680
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$5) : worldRayOrigin); // World -> RTC
76690
76681
  rtcRayDir.set(worldRayDir);
@@ -76807,7 +76798,7 @@ class TrianglesBatchingLayer {
76807
76798
  }
76808
76799
 
76809
76800
  const tempVec4$3 = math.vec4();
76810
- const tempVec3a$F = math.vec3();
76801
+ const tempVec3a$E = math.vec3();
76811
76802
 
76812
76803
  /**
76813
76804
  * @private
@@ -76873,7 +76864,7 @@ class TrianglesInstancingColorRenderer {
76873
76864
  if (active) {
76874
76865
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
76875
76866
  if (origin) {
76876
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$F);
76867
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
76877
76868
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
76878
76869
  } else {
76879
76870
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77350,7 +77341,7 @@ class TrianglesInstancingColorRenderer {
77350
77341
  }
77351
77342
 
77352
77343
  const tempVec4$2 = math.vec4();
77353
- const tempVec3a$E = math.vec3();
77344
+ const tempVec3a$D = math.vec3();
77354
77345
 
77355
77346
  /**
77356
77347
  * @private
@@ -77412,7 +77403,7 @@ class TrianglesInstancingFlatColorRenderer {
77412
77403
  if (active) {
77413
77404
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77414
77405
  if (origin) {
77415
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
77406
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77416
77407
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77417
77408
  } else {
77418
77409
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -77859,7 +77850,7 @@ class TrianglesInstancingFlatColorRenderer {
77859
77850
  }
77860
77851
  }
77861
77852
 
77862
- const tempVec3a$D = math.vec3();
77853
+ const tempVec3a$C = math.vec3();
77863
77854
 
77864
77855
  /**
77865
77856
  * @private
@@ -77942,7 +77933,7 @@ class TrianglesInstancingSilhouetteRenderer {
77942
77933
  if (active) {
77943
77934
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
77944
77935
  if (origin) {
77945
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
77936
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
77946
77937
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
77947
77938
  } else {
77948
77939
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78214,7 +78205,7 @@ class TrianglesInstancingSilhouetteRenderer {
78214
78205
  }
78215
78206
  }
78216
78207
 
78217
- const tempVec3a$C = math.vec3();
78208
+ const tempVec3a$B = math.vec3();
78218
78209
  const defaultColor$2 = new Float32Array([0,0,0,1]);
78219
78210
 
78220
78211
  /**
@@ -78298,7 +78289,7 @@ class TrianglesInstancingEdgesRenderer {
78298
78289
  if (active) {
78299
78290
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78300
78291
  if (origin) {
78301
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
78292
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78302
78293
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78303
78294
  } else {
78304
78295
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78559,7 +78550,7 @@ class TrianglesInstancingEdgesRenderer {
78559
78550
  }
78560
78551
  }
78561
78552
 
78562
- const tempVec3a$B = math.vec3();
78553
+ const tempVec3a$A = math.vec3();
78563
78554
 
78564
78555
  /**
78565
78556
  * @private
@@ -78620,7 +78611,7 @@ class TrianglesInstancingEdgesColorRenderer {
78620
78611
  if (active) {
78621
78612
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78622
78613
  if (origin) {
78623
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
78614
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78624
78615
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78625
78616
  } else {
78626
78617
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -78886,7 +78877,7 @@ class TrianglesInstancingEdgesColorRenderer {
78886
78877
  }
78887
78878
  }
78888
78879
 
78889
- const tempVec3a$A = math.vec3();
78880
+ const tempVec3a$z = math.vec3();
78890
78881
 
78891
78882
  /**
78892
78883
  * @private
@@ -78989,7 +78980,7 @@ class TrianglesInstancingPickMeshRenderer {
78989
78980
  if (active) {
78990
78981
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
78991
78982
  if (origin) {
78992
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
78983
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
78993
78984
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
78994
78985
  } else {
78995
78986
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79224,7 +79215,7 @@ class TrianglesInstancingPickMeshRenderer {
79224
79215
  }
79225
79216
  }
79226
79217
 
79227
- const tempVec3a$z = math.vec3();
79218
+ const tempVec3a$y = math.vec3();
79228
79219
 
79229
79220
  /**
79230
79221
  * @private
@@ -79301,7 +79292,7 @@ class TrianglesInstancingPickDepthRenderer {
79301
79292
  if (active) {
79302
79293
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79303
79294
  if (origin) {
79304
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
79295
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79305
79296
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79306
79297
  } else {
79307
79298
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79569,7 +79560,7 @@ class TrianglesInstancingPickDepthRenderer {
79569
79560
  }
79570
79561
  }
79571
79562
 
79572
- const tempVec3a$y = math.vec3();
79563
+ const tempVec3a$x = math.vec3();
79573
79564
 
79574
79565
  /**
79575
79566
  * @private
@@ -79646,7 +79637,7 @@ class TrianglesInstancingPickNormalsRenderer {
79646
79637
  if (active) {
79647
79638
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79648
79639
  if (origin) {
79649
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
79640
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79650
79641
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79651
79642
  } else {
79652
79643
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -79923,7 +79914,7 @@ class TrianglesInstancingPickNormalsRenderer {
79923
79914
  }
79924
79915
  }
79925
79916
 
79926
- const tempVec3a$x = math.vec3();
79917
+ const tempVec3a$w = math.vec3();
79927
79918
 
79928
79919
  /**
79929
79920
  * @private
@@ -79984,7 +79975,7 @@ class TrianglesInstancingOcclusionRenderer {
79984
79975
  if (active) {
79985
79976
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
79986
79977
  if (origin) {
79987
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
79978
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
79988
79979
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
79989
79980
  } else {
79990
79981
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80242,7 +80233,7 @@ class TrianglesInstancingOcclusionRenderer {
80242
80233
  }
80243
80234
  }
80244
80235
 
80245
- const tempVec3a$w = math.vec3();
80236
+ const tempVec3a$v = math.vec3();
80246
80237
 
80247
80238
  /**
80248
80239
  * @private
@@ -80303,7 +80294,7 @@ class TrianglesInstancingDepthRenderer {
80303
80294
  if (active) {
80304
80295
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80305
80296
  if (origin) {
80306
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
80297
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80307
80298
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80308
80299
  } else {
80309
80300
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80553,7 +80544,7 @@ class TrianglesInstancingDepthRenderer {
80553
80544
  }
80554
80545
  }
80555
80546
 
80556
- const tempVec3a$v = math.vec3();
80547
+ const tempVec3a$u = math.vec3();
80557
80548
 
80558
80549
  /**
80559
80550
  * @private
@@ -80617,7 +80608,7 @@ class TrianglesInstancingNormalsRenderer {
80617
80608
  if (active) {
80618
80609
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80619
80610
  if (origin) {
80620
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
80611
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80621
80612
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80622
80613
  } else {
80623
80614
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -80897,7 +80888,7 @@ class TrianglesInstancingNormalsRenderer {
80897
80888
  }
80898
80889
  }
80899
80890
 
80900
- const tempVec3a$u = math.vec3();
80891
+ const tempVec3a$t = math.vec3();
80901
80892
 
80902
80893
  /**
80903
80894
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -80984,7 +80975,7 @@ class TrianglesInstancingShadowRenderer {
80984
80975
  if (active) {
80985
80976
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
80986
80977
  if (origin) {
80987
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
80978
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
80988
80979
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
80989
80980
  } else {
80990
80981
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -81177,7 +81168,7 @@ class TrianglesInstancingShadowRenderer {
81177
81168
  }
81178
81169
 
81179
81170
  const tempVec4$1 = math.vec4();
81180
- const tempVec3a$t = math.vec3();
81171
+ const tempVec3a$s = math.vec3();
81181
81172
 
81182
81173
  const TEXTURE_DECODE_FUNCS = {};
81183
81174
  TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
@@ -81251,7 +81242,7 @@ class TrianglesInstancingPBRRenderer {
81251
81242
  if (active) {
81252
81243
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
81253
81244
  if (origin) {
81254
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
81245
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
81255
81246
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
81256
81247
  } else {
81257
81248
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82087,7 +82078,7 @@ class TrianglesInstancingPBRRenderer {
82087
82078
  }
82088
82079
  }
82089
82080
 
82090
- const tempVec3a$s = math.vec3();
82081
+ const tempVec3a$r = math.vec3();
82091
82082
 
82092
82083
  /**
82093
82084
  * @private
@@ -82162,7 +82153,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82162
82153
  if (active) {
82163
82154
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82164
82155
  if (origin) {
82165
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
82156
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82166
82157
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82167
82158
  } else {
82168
82159
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -82402,7 +82393,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
82402
82393
  }
82403
82394
 
82404
82395
  const tempVec4 = math.vec4();
82405
- const tempVec3a$r = math.vec3();
82396
+ const tempVec3a$q = math.vec3();
82406
82397
 
82407
82398
  /**
82408
82399
  * @private
@@ -82467,7 +82458,7 @@ class TrianglesInstancingColorTextureRenderer {
82467
82458
  if (active) {
82468
82459
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
82469
82460
  if (origin) {
82470
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
82461
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$q);
82471
82462
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
82472
82463
  } else {
82473
82464
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -83278,8 +83269,8 @@ const tempVec4b$9 = math.vec4([0, 0, 0, 1]);
83278
83269
  const tempVec4c$6 = math.vec4([0, 0, 0, 1]);
83279
83270
  const tempVec3fa$2 = new Float32Array(3);
83280
83271
 
83281
- const tempVec3a$q = math.vec3();
83282
- const tempVec3b$6 = math.vec3();
83272
+ const tempVec3a$p = math.vec3();
83273
+ const tempVec3b$5 = math.vec3();
83283
83274
  const tempVec3c$4 = math.vec3();
83284
83275
  const tempVec3d$1 = math.vec3();
83285
83276
  const tempVec3e = math.vec3();
@@ -84207,8 +84198,8 @@ class TrianglesInstancingLayer {
84207
84198
  const origin = state.origin;
84208
84199
  const offset = portion.offset;
84209
84200
 
84210
- const rtcRayOrigin = tempVec3a$q;
84211
- const rtcRayDir = tempVec3b$6;
84201
+ const rtcRayOrigin = tempVec3a$p;
84202
+ const rtcRayDir = tempVec3b$5;
84212
84203
 
84213
84204
  rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$4) : worldRayOrigin); // World -> RTC
84214
84205
  rtcRayDir.set(worldRayDir);
@@ -84341,7 +84332,7 @@ class TrianglesInstancingLayer {
84341
84332
  }
84342
84333
  }
84343
84334
 
84344
- const tempVec3a$p = math.vec3();
84335
+ const tempVec3a$o = math.vec3();
84345
84336
 
84346
84337
  /**
84347
84338
  * @private
@@ -84404,7 +84395,7 @@ class LinesBatchingColorRenderer {
84404
84395
  if (active) {
84405
84396
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84406
84397
  if (origin) {
84407
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$p);
84398
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84408
84399
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84409
84400
  } else {
84410
84401
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -84624,7 +84615,7 @@ class LinesBatchingColorRenderer {
84624
84615
  }
84625
84616
 
84626
84617
  const defaultColor$1 = new Float32Array([1, 1, 1]);
84627
- const tempVec3a$o = math.vec3();
84618
+ const tempVec3a$n = math.vec3();
84628
84619
 
84629
84620
  /**
84630
84621
  * @private
@@ -84711,7 +84702,7 @@ class LinesBatchingSilhouetteRenderer {
84711
84702
  if (active) {
84712
84703
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
84713
84704
  if (origin) {
84714
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
84705
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
84715
84706
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
84716
84707
  } else {
84717
84708
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -85808,7 +85799,7 @@ class LinesBatchingLayer {
85808
85799
  }
85809
85800
  }
85810
85801
 
85811
- const tempVec3a$n = math.vec3();
85802
+ const tempVec3a$m = math.vec3();
85812
85803
 
85813
85804
  /**
85814
85805
  * @private
@@ -85871,7 +85862,7 @@ class LinesInstancingColorRenderer {
85871
85862
  if (active) {
85872
85863
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
85873
85864
  if (origin) {
85874
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
85865
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
85875
85866
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
85876
85867
  } else {
85877
85868
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -86153,7 +86144,7 @@ class LinesInstancingColorRenderer {
86153
86144
  }
86154
86145
  }
86155
86146
 
86156
- const tempVec3a$m = math.vec3();
86147
+ const tempVec3a$l = math.vec3();
86157
86148
 
86158
86149
  /**
86159
86150
  * @private
@@ -86238,7 +86229,7 @@ class LinesInstancingSilhouetteRenderer {
86238
86229
  if (active) {
86239
86230
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
86240
86231
  if (origin) {
86241
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
86232
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
86242
86233
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
86243
86234
  } else {
86244
86235
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87220,7 +87211,7 @@ class LinesInstancingLayer {
87220
87211
  }
87221
87212
  }
87222
87213
 
87223
- const tempVec3a$l = math.vec3();
87214
+ const tempVec3a$k = math.vec3();
87224
87215
 
87225
87216
  /**
87226
87217
  * @private
@@ -87281,7 +87272,7 @@ class PointsBatchingColorRenderer {
87281
87272
  if (active) {
87282
87273
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87283
87274
  if (origin) {
87284
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
87275
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87285
87276
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87286
87277
  } else {
87287
87278
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87566,7 +87557,7 @@ class PointsBatchingColorRenderer {
87566
87557
  }
87567
87558
 
87568
87559
  const defaultColor = new Float32Array([1, 1, 1]);
87569
- const tempVec3a$k = math.vec3();
87560
+ const tempVec3a$j = math.vec3();
87570
87561
 
87571
87562
  /**
87572
87563
  * @private
@@ -87651,7 +87642,7 @@ class PointsBatchingSilhouetteRenderer {
87651
87642
  if (active) {
87652
87643
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87653
87644
  if (origin) {
87654
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
87645
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87655
87646
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87656
87647
  } else {
87657
87648
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -87895,7 +87886,7 @@ class PointsBatchingSilhouetteRenderer {
87895
87886
  }
87896
87887
  }
87897
87888
 
87898
- const tempVec3a$j = math.vec3();
87889
+ const tempVec3a$i = math.vec3();
87899
87890
 
87900
87891
  /**
87901
87892
  * @private
@@ -87962,7 +87953,7 @@ class PointsBatchingPickMeshRenderer {
87962
87953
  if (active) {
87963
87954
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
87964
87955
  if (origin) {
87965
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
87956
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
87966
87957
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
87967
87958
  } else {
87968
87959
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88207,7 +88198,7 @@ class PointsBatchingPickMeshRenderer {
88207
88198
  }
88208
88199
  }
88209
88200
 
88210
- const tempVec3a$i = math.vec3();
88201
+ const tempVec3a$h = math.vec3();
88211
88202
 
88212
88203
  /**
88213
88204
  * @private
@@ -88279,7 +88270,7 @@ class PointsBatchingPickDepthRenderer {
88279
88270
  if (active) {
88280
88271
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88281
88272
  if (origin) {
88282
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
88273
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88283
88274
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88284
88275
  } else {
88285
88276
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88530,7 +88521,7 @@ class PointsBatchingPickDepthRenderer {
88530
88521
  }
88531
88522
  }
88532
88523
 
88533
- const tempVec3a$h = math.vec3();
88524
+ const tempVec3a$g = math.vec3();
88534
88525
 
88535
88526
  /**
88536
88527
  * @private
@@ -88591,7 +88582,7 @@ class PointsBatchingOcclusionRenderer {
88591
88582
  if (active) {
88592
88583
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
88593
88584
  if (origin) {
88594
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
88585
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$g);
88595
88586
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
88596
88587
  } else {
88597
88588
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -88957,8 +88948,8 @@ class PointsBatchingBuffer {
88957
88948
  }
88958
88949
  }
88959
88950
 
88960
- const tempVec3a$g = math.vec4();
88961
- const tempVec3b$5 = math.vec4();
88951
+ const tempVec3a$f = math.vec4();
88952
+ const tempVec3b$4 = math.vec4();
88962
88953
  const tempVec4a$6 = math.vec4([0, 0, 0, 1]);
88963
88954
  const tempVec4b$6 = math.vec4([0, 0, 0, 1]);
88964
88955
  const tempVec4c$3 = math.vec4([0, 0, 0, 1]);
@@ -89110,8 +89101,8 @@ class PointsBatchingLayer {
89110
89101
 
89111
89102
  const bounds = geometryCompressionUtils.getPositionsBounds(positionsCompressed);
89112
89103
 
89113
- const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$g);
89114
- const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$5);
89104
+ const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$f);
89105
+ const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$4);
89115
89106
 
89116
89107
  worldAABB[0] = min[0];
89117
89108
  worldAABB[1] = min[1];
@@ -89749,7 +89740,7 @@ class PointsBatchingLayer {
89749
89740
  }
89750
89741
  }
89751
89742
 
89752
- const tempVec3a$f = math.vec3();
89743
+ const tempVec3a$e = math.vec3();
89753
89744
 
89754
89745
  /**
89755
89746
  * @private
@@ -89818,7 +89809,7 @@ class PointsInstancingColorRenderer {
89818
89809
  if (active) {
89819
89810
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
89820
89811
  if (origin) {
89821
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$f);
89812
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
89822
89813
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
89823
89814
  } else {
89824
89815
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90128,7 +90119,7 @@ class PointsInstancingColorRenderer {
90128
90119
  }
90129
90120
  }
90130
90121
 
90131
- const tempVec3a$e = math.vec3();
90122
+ const tempVec3a$d = math.vec3();
90132
90123
 
90133
90124
  /**
90134
90125
  * @private
@@ -90212,7 +90203,7 @@ class PointsInstancingSilhouetteRenderer {
90212
90203
  if (active) {
90213
90204
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90214
90205
  if (origin) {
90215
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
90206
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90216
90207
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90217
90208
  } else {
90218
90209
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90493,7 +90484,7 @@ class PointsInstancingSilhouetteRenderer {
90493
90484
  }
90494
90485
  }
90495
90486
 
90496
- const tempVec3a$d = math.vec3();
90487
+ const tempVec3a$c = math.vec3();
90497
90488
 
90498
90489
  /**
90499
90490
  * @private
@@ -90599,7 +90590,7 @@ class PointsInstancingPickMeshRenderer {
90599
90590
  if (active) {
90600
90591
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90601
90592
  if (origin) {
90602
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
90593
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90603
90594
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90604
90595
  } else {
90605
90596
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -90850,7 +90841,7 @@ class PointsInstancingPickMeshRenderer {
90850
90841
  }
90851
90842
  }
90852
90843
 
90853
- const tempVec3a$c = math.vec3();
90844
+ const tempVec3a$b = math.vec3();
90854
90845
 
90855
90846
  /**
90856
90847
  * @private
@@ -90928,7 +90919,7 @@ class PointsInstancingPickDepthRenderer {
90928
90919
  if (active) {
90929
90920
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
90930
90921
  if (origin) {
90931
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
90922
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
90932
90923
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
90933
90924
  } else {
90934
90925
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91216,7 +91207,7 @@ class PointsInstancingPickDepthRenderer {
91216
91207
  }
91217
91208
  }
91218
91209
 
91219
- const tempVec3a$b = math.vec3();
91210
+ const tempVec3a$a = math.vec3();
91220
91211
 
91221
91212
  /**
91222
91213
  * @private
@@ -91278,7 +91269,7 @@ class PointsInstancingOcclusionRenderer {
91278
91269
  if (active) {
91279
91270
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91280
91271
  if (origin) {
91281
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
91272
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91282
91273
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91283
91274
  } else {
91284
91275
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91567,7 +91558,7 @@ class PointsInstancingOcclusionRenderer {
91567
91558
  }
91568
91559
  }
91569
91560
 
91570
- const tempVec3a$a = math.vec3();
91561
+ const tempVec3a$9 = math.vec3();
91571
91562
 
91572
91563
  /**
91573
91564
  * @private
@@ -91629,7 +91620,7 @@ class PointsInstancingDepthRenderer {
91629
91620
  if (active) {
91630
91621
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
91631
91622
  if (origin) {
91632
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
91623
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
91633
91624
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
91634
91625
  } else {
91635
91626
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -91913,7 +91904,7 @@ class PointsInstancingDepthRenderer {
91913
91904
  }
91914
91905
  }
91915
91906
 
91916
- const tempVec3a$9 = math.vec3();
91907
+ const tempVec3a$8 = math.vec3();
91917
91908
 
91918
91909
  /**
91919
91910
  * Renders InstancingLayer fragment depths to a shadow map.
@@ -92000,7 +91991,7 @@ class PointsInstancingShadowRenderer {
92000
91991
  if (active) {
92001
91992
  const sectionPlane = sectionPlanes[sectionPlaneIndex];
92002
91993
  if (origin) {
92003
- const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
91994
+ const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$8);
92004
91995
  gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
92005
91996
  } else {
92006
91997
  gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
@@ -94341,7 +94332,7 @@ function getKTX2TextureTranscoder(viewer) {
94341
94332
  return transcoder;
94342
94333
  }
94343
94334
 
94344
- const tempVec3a$8 = math.vec3();
94335
+ const tempVec3a$7 = math.vec3();
94345
94336
  const tempMat4$1 = math.mat4();
94346
94337
 
94347
94338
  const defaultScale = math.vec3([1, 1, 1]);
@@ -96722,7 +96713,7 @@ class VBOSceneModel extends Component {
96722
96713
  }
96723
96714
 
96724
96715
  const cfgOrigin = cfg.origin || cfg.rtcCenter;
96725
- const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$8) : this._origin;
96716
+ const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$7) : this._origin;
96726
96717
 
96727
96718
  const instancingLayer = this._getInstancingLayer(origin, textureSetId, geometryId);
96728
96719
 
@@ -96784,7 +96775,7 @@ class VBOSceneModel extends Component {
96784
96775
 
96785
96776
  let indices = cfg.indices;
96786
96777
  let edgeIndices = cfg.edgeIndices;
96787
- let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$8) : this._origin;
96778
+ let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$7) : this._origin;
96788
96779
  let positions = cfg.positions;
96789
96780
 
96790
96781
  if (positions) {
@@ -97798,8 +97789,8 @@ class TextureTranscoder {
97798
97789
  const screenPos = math.vec4();
97799
97790
  const viewPos = math.vec4();
97800
97791
 
97801
- const tempVec3a$7 = math.vec3();
97802
- const tempVec3b$4 = math.vec3();
97792
+ const tempVec3a$6 = math.vec3();
97793
+ const tempVec3b$3 = math.vec3();
97803
97794
  const tempVec3c$3 = math.vec3();
97804
97795
 
97805
97796
  const tempVec4a$4 = math.vec4();
@@ -97833,7 +97824,7 @@ class PanController {
97833
97824
  const camera = this._scene.camera;
97834
97825
 
97835
97826
  if (optionalTargetWorldPos) {
97836
- const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97827
+ const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97837
97828
  const eyeWorldPosDist = math.lenVec3(eyeToWorldPosVec);
97838
97829
  dolliedThroughSurface = (eyeWorldPosDist < dollyDelta);
97839
97830
  }
@@ -97857,9 +97848,9 @@ class PanController {
97857
97848
  // suddenly a lot closer than the point we pivoted about on the surface of the last object
97858
97849
  // that we click-drag-pivoted on.
97859
97850
 
97860
- const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
97851
+ const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
97861
97852
  const lenEyeTargetVec = math.lenVec3(eyeTargetVec);
97862
- const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$4)), lenEyeTargetVec);
97853
+ const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$3)), lenEyeTargetVec);
97863
97854
  camera.look = [camera.eye[0] + eyeLookVec[0], camera.eye[1] + eyeLookVec[1], camera.eye[2] + eyeLookVec[2]];
97864
97855
  }
97865
97856
 
@@ -97876,7 +97867,7 @@ class PanController {
97876
97867
 
97877
97868
  const worldPos2 = this._unproject(targetCanvasPos, tempVec4b$4);
97878
97869
  const offset = math.subVec3(worldPos2, worldPos1, tempVec4c$1);
97879
- const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$7)), -dollyDelta, tempVec3b$4);
97870
+ const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6)), -dollyDelta, tempVec3b$3);
97880
97871
  const moveVec = math.addVec3(offset, eyeLookMoveVec, tempVec3c$3);
97881
97872
 
97882
97873
  camera.eye = [camera.eye[0] - moveVec[0], camera.eye[1] - moveVec[1], camera.eye[2] - moveVec[2]];
@@ -97904,8 +97895,8 @@ class PanController {
97904
97895
  }
97905
97896
  }
97906
97897
 
97907
- const tempVec3a$6 = math.vec3();
97908
- const tempVec3b$3 = math.vec3();
97898
+ const tempVec3a$5 = math.vec3();
97899
+ const tempVec3b$2 = math.vec3();
97909
97900
  const tempVec3c$2 = math.vec3();
97910
97901
 
97911
97902
  const tempVec4a$3 = math.vec4();
@@ -98037,10 +98028,10 @@ class PivotController {
98037
98028
 
98038
98029
  _cameraLookingDownwards() { // Returns true if angle between camera viewing direction and World-space "up" axis is too small
98039
98030
  const camera = this._scene.camera;
98040
- const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6));
98041
- const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$3);
98031
+ const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$5));
98032
+ const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$2);
98042
98033
  let rightAxisLen = math.sqLenVec3(rightAxis);
98043
- return (Math.abs(rightAxisLen) <= 0.1);
98034
+ return (rightAxisLen <= 0.0001);
98044
98035
  }
98045
98036
 
98046
98037
  /**
@@ -98078,8 +98069,8 @@ class PivotController {
98078
98069
  const screenZ = math.dotVec4(D, Pt3) / math.dotVec4(D, Pt4);
98079
98070
  const worldPos = tempVec4a$3;
98080
98071
  camera.project.unproject(canvasPos, screenZ, tempVec4b$3, tempVec4c, worldPos);
98081
- const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$6));
98082
- const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$3), tempVec3c$2);
98072
+ const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$5));
98073
+ const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$2), tempVec3c$2);
98083
98074
  this.setPivotPos(posOnSphere);
98084
98075
  }
98085
98076
 
@@ -98101,10 +98092,6 @@ class PivotController {
98101
98092
  if (!this._pivoting) {
98102
98093
  return;
98103
98094
  }
98104
- if (this._cameraLookingDownwards()) {
98105
- this._pivoting = false;
98106
- return;
98107
- }
98108
98095
  if (yawInc === 0 && pitchInc === 0) {
98109
98096
  return;
98110
98097
  }
@@ -98714,8 +98701,8 @@ class MousePanRotateDollyHandler {
98714
98701
  }
98715
98702
 
98716
98703
  const center = math.vec3();
98717
- const tempVec3a$5 = math.vec3();
98718
- const tempVec3b$2 = math.vec3();
98704
+ const tempVec3a$4 = math.vec3();
98705
+ const tempVec3b$1 = math.vec3();
98719
98706
  const tempVec3c$1 = math.vec3();
98720
98707
  const tempVec3d = math.vec3();
98721
98708
 
@@ -98769,39 +98756,39 @@ class KeyboardAxisViewHandler {
98769
98756
 
98770
98757
  if (axisViewRight) {
98771
98758
 
98772
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$5), tempVec3d));
98759
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$4), tempVec3d));
98773
98760
  tempCameraTarget.look.set(center);
98774
98761
  tempCameraTarget.up.set(camera.worldUp);
98775
98762
 
98776
98763
  } else if (axisViewBack) {
98777
98764
 
98778
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$5), tempVec3d));
98765
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$4), tempVec3d));
98779
98766
  tempCameraTarget.look.set(center);
98780
98767
  tempCameraTarget.up.set(camera.worldUp);
98781
98768
 
98782
98769
  } else if (axisViewLeft) {
98783
98770
 
98784
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$5), tempVec3d));
98771
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$4), tempVec3d));
98785
98772
  tempCameraTarget.look.set(center);
98786
98773
  tempCameraTarget.up.set(camera.worldUp);
98787
98774
 
98788
98775
  } else if (axisViewFront) {
98789
98776
 
98790
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$5), tempVec3d));
98777
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$4), tempVec3d));
98791
98778
  tempCameraTarget.look.set(center);
98792
98779
  tempCameraTarget.up.set(camera.worldUp);
98793
98780
 
98794
98781
  } else if (axisViewTop) {
98795
98782
 
98796
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$5), tempVec3d));
98783
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$4), tempVec3d));
98797
98784
  tempCameraTarget.look.set(center);
98798
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$2), tempVec3c$1));
98785
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$1), tempVec3c$1));
98799
98786
 
98800
98787
  } else if (axisViewBottom) {
98801
98788
 
98802
- tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$5), tempVec3d));
98789
+ tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$4), tempVec3d));
98803
98790
  tempCameraTarget.look.set(center);
98804
- tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$2)));
98791
+ tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$1)));
98805
98792
  }
98806
98793
 
98807
98794
  if ((!configs.firstPerson) && configs.followPointer) {
@@ -99375,8 +99362,6 @@ class KeyboardPanRotateDollyHandler {
99375
99362
  const SCALE_DOLLY_EACH_FRAME = 1; // Recalculate dolly speed for eye->target distance on each Nth frame
99376
99363
  const EPSILON = 0.001;
99377
99364
  const tempVec3$1 = math.vec3();
99378
- const tempVec3a$4 = math.vec3();
99379
- const tempVec3b$1 = math.vec3();
99380
99365
 
99381
99366
  /**
99382
99367
  * Handles camera updates on each "tick" that were scheduled by the various controllers.
@@ -99396,7 +99381,7 @@ class CameraUpdater {
99396
99381
  let countDown = SCALE_DOLLY_EACH_FRAME; // Decrements on each tick
99397
99382
  let dollyDistFactor = 1.0; // Calculated when countDown is zero
99398
99383
  let followPointerWorldPos = null; // Holds the pointer's World position when configs.followPointer is true
99399
-
99384
+
99400
99385
  this._onTick = scene.on("tick", () => {
99401
99386
 
99402
99387
  if (!(configs.active && configs.pointerEnabled)) {
@@ -99457,7 +99442,7 @@ class CameraUpdater {
99457
99442
 
99458
99443
  if (pickController.pickResult && pickController.pickResult.worldPos) {
99459
99444
  followPointerWorldPos = pickController.pickResult.worldPos;
99460
-
99445
+
99461
99446
  } else {
99462
99447
  dollyDistFactor = 1.0;
99463
99448
  followPointerWorldPos = null;
@@ -99677,13 +99662,6 @@ class CameraUpdater {
99677
99662
  });
99678
99663
  }
99679
99664
 
99680
- isLookingDownwards(look, eye) {
99681
- const camera = this._scene.camera;
99682
- const forwardAxis = math.normalizeVec3(math.subVec3(look, eye, tempVec3a$4));
99683
- const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$1);
99684
- let rightAxisLen = math.sqLenVec3(rightAxis);
99685
- return (Math.abs(rightAxisLen) <= 0.1);
99686
- }
99687
99665
 
99688
99666
  destroy() {
99689
99667
  this._scene.off(this._onTick);
@@ -103070,27 +103048,27 @@ class Viewer {
103070
103048
 
103071
103049
  const needFinishSnapshot = (!this._snapshotBegun);
103072
103050
 
103073
- if (!this._snapshotBegun) {
103074
- this.beginSnapshot();
103075
- }
103076
-
103077
- if (!params.includeGizmos) {
103078
- this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
103079
- }
103080
-
103081
103051
  const resize = (params.width !== undefined && params.height !== undefined);
103082
103052
  const canvas = this.scene.canvas.canvas;
103083
103053
  const saveWidth = canvas.clientWidth;
103084
103054
  const saveHeight = canvas.clientHeight;
103085
- const saveCssWidth = canvas.style.width;
103086
- const saveCssHeight = canvas.style.height;
103055
+ canvas.style.width;
103056
+ canvas.style.height;
103087
103057
 
103088
103058
  const width = params.width ? Math.floor(params.width) : canvas.width;
103089
103059
  const height = params.height ? Math.floor(params.height) : canvas.height;
103090
103060
 
103091
103061
  if (resize) {
103092
- canvas.style.width = width + "px";
103093
- canvas.style.height = height + "px";
103062
+ canvas.width = width;
103063
+ canvas.height = height;
103064
+ }
103065
+
103066
+ if (!this._snapshotBegun) {
103067
+ this.beginSnapshot();
103068
+ }
103069
+
103070
+ if (!params.includeGizmos) {
103071
+ this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
103094
103072
  }
103095
103073
 
103096
103074
  this.scene._renderer.renderSnapshot();
@@ -103098,8 +103076,6 @@ class Viewer {
103098
103076
  const imageDataURI = this.scene._renderer.readSnapshot(params);
103099
103077
 
103100
103078
  if (resize) {
103101
- canvas.style.width = saveCssWidth;
103102
- canvas.style.height = saveCssHeight;
103103
103079
  canvas.width = saveWidth;
103104
103080
  canvas.height = saveHeight;
103105
103081