@xeokit/xeokit-sdk 2.4.0-alpha-19 → 2.4.0-alpha-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xeokit-sdk.cjs.js +243 -206
- package/dist/xeokit-sdk.es.js +243 -206
- package/dist/xeokit-sdk.es5.js +174 -174
- package/dist/xeokit-sdk.min.cjs.js +3 -3
- package/dist/xeokit-sdk.min.es.js +3 -3
- package/dist/xeokit-sdk.min.es5.js +2 -2
- package/package.json +1 -1
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -8940,7 +8940,7 @@ class VBOSceneModelNode {
|
|
|
8940
8940
|
|
|
8941
8941
|
}
|
|
8942
8942
|
|
|
8943
|
-
const tempVec3a$
|
|
8943
|
+
const tempVec3a$1i = 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$
|
|
9023
|
+
const center = math.getPositionsCenter(worldPositions, tempVec3a$1i);
|
|
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$
|
|
9059
|
+
const dirNormalized = math.normalizeVec3(dir, tempVec3a$1i);
|
|
9060
9060
|
math.mulVec3Scalar(dirNormalized, -rtcCenterToPlaneDist, rtcPlanePos);
|
|
9061
9061
|
return rtcPlanePos;
|
|
9062
9062
|
}
|
|
@@ -9520,6 +9520,12 @@ class Wire {
|
|
|
9520
9520
|
});
|
|
9521
9521
|
}
|
|
9522
9522
|
|
|
9523
|
+
if (cfg.onMouseWheel) {
|
|
9524
|
+
wireClickable.addEventListener('wheel', (event) => {
|
|
9525
|
+
cfg.onMouseWheel(event, this);
|
|
9526
|
+
});
|
|
9527
|
+
}
|
|
9528
|
+
|
|
9523
9529
|
if (cfg.onContextMenu) {
|
|
9524
9530
|
wireClickable.addEventListener('contextmenu', (event) => {
|
|
9525
9531
|
cfg.onContextMenu(event, this);
|
|
@@ -9675,6 +9681,12 @@ class Dot {
|
|
|
9675
9681
|
});
|
|
9676
9682
|
}
|
|
9677
9683
|
|
|
9684
|
+
if (cfg.onMouseWheel) {
|
|
9685
|
+
dotClickable.addEventListener('wheel', (event) => {
|
|
9686
|
+
cfg.onMouseWheel(event, this);
|
|
9687
|
+
});
|
|
9688
|
+
}
|
|
9689
|
+
|
|
9678
9690
|
if (cfg.onContextMenu) {
|
|
9679
9691
|
dotClickable.addEventListener('contextmenu', (event) => {
|
|
9680
9692
|
cfg.onContextMenu(event, this);
|
|
@@ -9799,6 +9811,12 @@ class Label {
|
|
|
9799
9811
|
});
|
|
9800
9812
|
}
|
|
9801
9813
|
|
|
9814
|
+
if (cfg.onMouseWheel) {
|
|
9815
|
+
label.addEventListener('wheel', (event) => {
|
|
9816
|
+
cfg.onMouseWheel(event, this);
|
|
9817
|
+
});
|
|
9818
|
+
}
|
|
9819
|
+
|
|
9802
9820
|
if (cfg.onContextMenu) {
|
|
9803
9821
|
label.addEventListener('contextmenu', (event) => {
|
|
9804
9822
|
cfg.onContextMenu(event, this);
|
|
@@ -11693,8 +11711,8 @@ class Annotation extends Marker {
|
|
|
11693
11711
|
}
|
|
11694
11712
|
}
|
|
11695
11713
|
|
|
11696
|
-
const tempVec3a$
|
|
11697
|
-
const tempVec3b$
|
|
11714
|
+
const tempVec3a$1h = math.vec3();
|
|
11715
|
+
const tempVec3b$d = math.vec3();
|
|
11698
11716
|
const tempVec3c$9 = math.vec3();
|
|
11699
11717
|
|
|
11700
11718
|
/**
|
|
@@ -12171,8 +12189,8 @@ class AnnotationsPlugin extends Plugin {
|
|
|
12171
12189
|
if (!pickResult.worldPos || !pickResult.worldNormal) {
|
|
12172
12190
|
this.error("Param 'pickResult' does not have both worldPos and worldNormal");
|
|
12173
12191
|
} else {
|
|
12174
|
-
const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$
|
|
12175
|
-
const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$
|
|
12192
|
+
const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1h);
|
|
12193
|
+
const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$d);
|
|
12176
12194
|
const offsetWorldPos = math.addVec3(pickResult.worldPos, offsetVec, tempVec3c$9);
|
|
12177
12195
|
worldPos = offsetWorldPos;
|
|
12178
12196
|
entity = pickResult.entity;
|
|
@@ -14368,7 +14386,7 @@ const MARKER_COLOR = math.vec3([1.0, 0.0, 0.0]);
|
|
|
14368
14386
|
const POINT_SIZE = 20;
|
|
14369
14387
|
const MARKER_SPRITE_CLIPZ_OFFSET = -0.001; // Amount that we offset sprite clip Z coords to raise them from surfaces
|
|
14370
14388
|
|
|
14371
|
-
const tempVec3a$
|
|
14389
|
+
const tempVec3a$1g = math.vec3();
|
|
14372
14390
|
|
|
14373
14391
|
/**
|
|
14374
14392
|
* Manages occlusion testing. Private member of a Renderer.
|
|
@@ -14705,7 +14723,7 @@ class OcclusionTester {
|
|
|
14705
14723
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
14706
14724
|
if (active) {
|
|
14707
14725
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
14708
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
14726
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1g));
|
|
14709
14727
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
14710
14728
|
}
|
|
14711
14729
|
}
|
|
@@ -18710,7 +18728,7 @@ class CustomProjection extends Component {
|
|
|
18710
18728
|
}
|
|
18711
18729
|
|
|
18712
18730
|
const tempVec3$6 = math.vec3();
|
|
18713
|
-
const tempVec3b$
|
|
18731
|
+
const tempVec3b$c = math.vec3();
|
|
18714
18732
|
const tempVec3c$8 = math.vec3();
|
|
18715
18733
|
const tempVec3d$4 = math.vec3();
|
|
18716
18734
|
const tempVec3e$3 = math.vec3();
|
|
@@ -19020,7 +19038,7 @@ class Camera extends Component {
|
|
|
19020
19038
|
orbitYaw(angleInc) {
|
|
19021
19039
|
let lookEyeVec = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19022
19040
|
math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
|
|
19023
|
-
lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$
|
|
19041
|
+
lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$c);
|
|
19024
19042
|
this.eye = math.addVec3(this._look, lookEyeVec, tempVec3c$8); // Set eye position as 'look' plus 'eye' vector
|
|
19025
19043
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4); // Rotate 'up' vector
|
|
19026
19044
|
}
|
|
@@ -19038,7 +19056,7 @@ class Camera extends Component {
|
|
|
19038
19056
|
}
|
|
19039
19057
|
}
|
|
19040
19058
|
let eye2 = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19041
|
-
const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$
|
|
19059
|
+
const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
|
|
19042
19060
|
math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
|
|
19043
19061
|
eye2 = math.transformPoint3(tempMat, eye2, tempVec3d$4);
|
|
19044
19062
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3e$3);
|
|
@@ -19053,7 +19071,7 @@ class Camera extends Component {
|
|
|
19053
19071
|
yaw(angleInc) {
|
|
19054
19072
|
let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
|
|
19055
19073
|
math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
|
|
19056
|
-
look2 = math.transformPoint3(tempMat, look2, tempVec3b$
|
|
19074
|
+
look2 = math.transformPoint3(tempMat, look2, tempVec3b$c);
|
|
19057
19075
|
this.look = math.addVec3(look2, this._eye, tempVec3c$8);
|
|
19058
19076
|
if (this._gimbalLock) {
|
|
19059
19077
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4);
|
|
@@ -19073,7 +19091,7 @@ class Camera extends Component {
|
|
|
19073
19091
|
}
|
|
19074
19092
|
}
|
|
19075
19093
|
let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
|
|
19076
|
-
const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$
|
|
19094
|
+
const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
|
|
19077
19095
|
math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
|
|
19078
19096
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3f$3);
|
|
19079
19097
|
look2 = math.transformPoint3(tempMat, look2, tempVec3d$4);
|
|
@@ -19090,7 +19108,7 @@ class Camera extends Component {
|
|
|
19090
19108
|
const vec = [0, 0, 0];
|
|
19091
19109
|
let v;
|
|
19092
19110
|
if (pan[0] !== 0) {
|
|
19093
|
-
const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$
|
|
19111
|
+
const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$c));
|
|
19094
19112
|
v = math.mulVec3Scalar(left, pan[0]);
|
|
19095
19113
|
vec[0] += v[0];
|
|
19096
19114
|
vec[1] += v[1];
|
|
@@ -19119,7 +19137,7 @@ class Camera extends Component {
|
|
|
19119
19137
|
*/
|
|
19120
19138
|
zoom(delta) {
|
|
19121
19139
|
const vec = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19122
|
-
const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$
|
|
19140
|
+
const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$c));
|
|
19123
19141
|
const newLenLook = Math.abs(lenLook + delta);
|
|
19124
19142
|
if (newLenLook < 0.5) {
|
|
19125
19143
|
return;
|
|
@@ -19581,7 +19599,7 @@ class Camera extends Component {
|
|
|
19581
19599
|
}
|
|
19582
19600
|
|
|
19583
19601
|
const tempVec4$9 = math.vec4();
|
|
19584
|
-
const tempVec3a$
|
|
19602
|
+
const tempVec3a$1f = math.vec3();
|
|
19585
19603
|
|
|
19586
19604
|
/**
|
|
19587
19605
|
* @private
|
|
@@ -19668,7 +19686,7 @@ class TrianglesDataTextureColorRenderer {
|
|
|
19668
19686
|
if (active) {
|
|
19669
19687
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
19670
19688
|
if (origin) {
|
|
19671
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
19689
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f);
|
|
19672
19690
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
19673
19691
|
} else {
|
|
19674
19692
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -20195,7 +20213,7 @@ class TrianglesDataTextureColorRenderer {
|
|
|
20195
20213
|
|
|
20196
20214
|
const defaultColor$6 = new Float32Array([1, 1, 1]);
|
|
20197
20215
|
math.vec4();
|
|
20198
|
-
const tempVec3a$
|
|
20216
|
+
const tempVec3a$1e = math.vec3();
|
|
20199
20217
|
|
|
20200
20218
|
/**
|
|
20201
20219
|
* @private
|
|
@@ -20303,7 +20321,7 @@ class TrianglesDataTextureSilhouetteRenderer {
|
|
|
20303
20321
|
if (active) {
|
|
20304
20322
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
20305
20323
|
if (origin) {
|
|
20306
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
20324
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
|
|
20307
20325
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
20308
20326
|
} else {
|
|
20309
20327
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -20659,7 +20677,7 @@ class TrianglesDataTextureSilhouetteRenderer {
|
|
|
20659
20677
|
}
|
|
20660
20678
|
}
|
|
20661
20679
|
|
|
20662
|
-
const tempVec3a$
|
|
20680
|
+
const tempVec3a$1d = math.vec3();
|
|
20663
20681
|
const defaultColor$5 = new Float32Array([0,0,0,1]);
|
|
20664
20682
|
|
|
20665
20683
|
/**
|
|
@@ -20759,7 +20777,7 @@ class TrianglesDataTextureEdgesRenderer {
|
|
|
20759
20777
|
if (active) {
|
|
20760
20778
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
20761
20779
|
if (origin) {
|
|
20762
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
20780
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
|
|
20763
20781
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
20764
20782
|
} else {
|
|
20765
20783
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21078,7 +21096,7 @@ class TrianglesDataTextureEdgesRenderer {
|
|
|
21078
21096
|
}
|
|
21079
21097
|
}
|
|
21080
21098
|
|
|
21081
|
-
const tempVec3a$
|
|
21099
|
+
const tempVec3a$1c = math.vec3();
|
|
21082
21100
|
|
|
21083
21101
|
/**
|
|
21084
21102
|
* @private
|
|
@@ -21152,7 +21170,7 @@ class TrianglesDataTextureEdgesColorRenderer {
|
|
|
21152
21170
|
if (active) {
|
|
21153
21171
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
21154
21172
|
if (origin) {
|
|
21155
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
21173
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
|
|
21156
21174
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
21157
21175
|
} else {
|
|
21158
21176
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21480,7 +21498,7 @@ class TrianglesDataTextureEdgesColorRenderer {
|
|
|
21480
21498
|
}
|
|
21481
21499
|
}
|
|
21482
21500
|
|
|
21483
|
-
const tempVec3a$
|
|
21501
|
+
const tempVec3a$1b = math.vec3();
|
|
21484
21502
|
|
|
21485
21503
|
/**
|
|
21486
21504
|
* @private
|
|
@@ -21567,7 +21585,7 @@ class TrianglesDataTexturePickMeshRenderer {
|
|
|
21567
21585
|
if (active) {
|
|
21568
21586
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
21569
21587
|
if (origin) {
|
|
21570
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
21588
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
|
|
21571
21589
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
21572
21590
|
} else {
|
|
21573
21591
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21923,7 +21941,7 @@ class TrianglesDataTexturePickMeshRenderer {
|
|
|
21923
21941
|
}
|
|
21924
21942
|
}
|
|
21925
21943
|
|
|
21926
|
-
const tempVec3a$
|
|
21944
|
+
const tempVec3a$1a = math.vec3();
|
|
21927
21945
|
|
|
21928
21946
|
/**
|
|
21929
21947
|
* @private
|
|
@@ -22015,7 +22033,7 @@ class TrianglesDataTexturePickDepthRenderer {
|
|
|
22015
22033
|
if (active) {
|
|
22016
22034
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
22017
22035
|
if (origin) {
|
|
22018
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
22036
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
|
|
22019
22037
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
22020
22038
|
} else {
|
|
22021
22039
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -22374,7 +22392,7 @@ class TrianglesDataTexturePickDepthRenderer {
|
|
|
22374
22392
|
}
|
|
22375
22393
|
}
|
|
22376
22394
|
|
|
22377
|
-
const tempVec3a$
|
|
22395
|
+
const tempVec3a$19 = math.vec3();
|
|
22378
22396
|
|
|
22379
22397
|
/**
|
|
22380
22398
|
* @private
|
|
@@ -22466,7 +22484,7 @@ class TrianglesDataTexturePickNormalsRenderer {
|
|
|
22466
22484
|
if (active) {
|
|
22467
22485
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
22468
22486
|
if (origin) {
|
|
22469
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
22487
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
|
|
22470
22488
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
22471
22489
|
} else {
|
|
22472
22490
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23030,7 +23048,7 @@ class TrianglesDataTextureOcclusionRenderer {
|
|
|
23030
23048
|
}
|
|
23031
23049
|
|
|
23032
23050
|
math.vec4();
|
|
23033
|
-
const tempVec3a$
|
|
23051
|
+
const tempVec3a$18 = math.vec3();
|
|
23034
23052
|
|
|
23035
23053
|
/**
|
|
23036
23054
|
* @private
|
|
@@ -23115,7 +23133,7 @@ class TrianglesDataTextureDepthRenderer {
|
|
|
23115
23133
|
if (active) {
|
|
23116
23134
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
23117
23135
|
if (origin) {
|
|
23118
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
23136
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
|
|
23119
23137
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
23120
23138
|
} else {
|
|
23121
23139
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23486,7 +23504,7 @@ class TrianglesDataTextureDepthRenderer {
|
|
|
23486
23504
|
}
|
|
23487
23505
|
}
|
|
23488
23506
|
|
|
23489
|
-
const tempVec3a$
|
|
23507
|
+
const tempVec3a$17 = math.vec3();
|
|
23490
23508
|
|
|
23491
23509
|
/**
|
|
23492
23510
|
* @private
|
|
@@ -23549,7 +23567,7 @@ class TrianglesDataTextureNormalsRenderer {
|
|
|
23549
23567
|
if (active) {
|
|
23550
23568
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
23551
23569
|
if (origin) {
|
|
23552
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
23570
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
|
|
23553
23571
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
23554
23572
|
} else {
|
|
23555
23573
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23979,7 +23997,7 @@ class TrianglesDataTextureShadowRenderer {
|
|
|
23979
23997
|
}
|
|
23980
23998
|
|
|
23981
23999
|
const tempVec4$8 = math.vec4();
|
|
23982
|
-
const tempVec3a$
|
|
24000
|
+
const tempVec3a$16 = math.vec3();
|
|
23983
24001
|
|
|
23984
24002
|
const TEXTURE_DECODE_FUNCS$2 = {
|
|
23985
24003
|
"linear": "linearToLinear",
|
|
@@ -24050,7 +24068,7 @@ class TrianglesDataTextureColorQualityRenderer {
|
|
|
24050
24068
|
if (active) {
|
|
24051
24069
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
24052
24070
|
if (origin) {
|
|
24053
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
24071
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
|
|
24054
24072
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
24055
24073
|
} else {
|
|
24056
24074
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -24789,7 +24807,7 @@ class TrianglesDataTextureColorQualityRenderer {
|
|
|
24789
24807
|
}
|
|
24790
24808
|
}
|
|
24791
24809
|
|
|
24792
|
-
const tempVec3a$
|
|
24810
|
+
const tempVec3a$15 = math.vec3();
|
|
24793
24811
|
|
|
24794
24812
|
/**
|
|
24795
24813
|
* @private
|
|
@@ -24903,7 +24921,7 @@ class TrianglesDataTexturePickNormalsFlatRenderer {
|
|
|
24903
24921
|
if (active) {
|
|
24904
24922
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
24905
24923
|
if (origin) {
|
|
24906
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
24924
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
|
|
24907
24925
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
24908
24926
|
} else {
|
|
24909
24927
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -27640,8 +27658,8 @@ const tempUint8Array4 = new Uint8Array (4);
|
|
|
27640
27658
|
|
|
27641
27659
|
const tempFloat32Array3 = new Float32Array (3);
|
|
27642
27660
|
|
|
27643
|
-
const tempVec3a$
|
|
27644
|
-
const tempVec3b$
|
|
27661
|
+
const tempVec3a$14 = math.vec3();
|
|
27662
|
+
const tempVec3b$b = math.vec3();
|
|
27645
27663
|
const tempVec3c$7 = math.vec3();
|
|
27646
27664
|
const tempVec3d$3 = math.vec3();
|
|
27647
27665
|
const tempVec3e$2 = math.vec3();
|
|
@@ -29266,8 +29284,8 @@ class TrianglesDataTextureLayer {
|
|
|
29266
29284
|
const origin = state.origin;
|
|
29267
29285
|
const offset = portion.offset;
|
|
29268
29286
|
|
|
29269
|
-
const rtcRayOrigin = tempVec3a$
|
|
29270
|
-
const rtcRayDir = tempVec3b$
|
|
29287
|
+
const rtcRayOrigin = tempVec3a$14;
|
|
29288
|
+
const rtcRayDir = tempVec3b$b;
|
|
29271
29289
|
|
|
29272
29290
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$7) : worldRayOrigin); // World -> RTC
|
|
29273
29291
|
rtcRayDir.set(worldRayDir);
|
|
@@ -32116,7 +32134,7 @@ class ViewFrustumCullingManager {
|
|
|
32116
32134
|
|
|
32117
32135
|
WEBGL_INFO.SUPPORTED_EXTENSIONS["ANGLE_instanced_arrays"];
|
|
32118
32136
|
|
|
32119
|
-
const tempVec3a$
|
|
32137
|
+
const tempVec3a$13 = math.vec3();
|
|
32120
32138
|
const tempMat4$3 = math.mat4();
|
|
32121
32139
|
|
|
32122
32140
|
const defaultScale$1 = math.vec3([1, 1, 1]);
|
|
@@ -33088,7 +33106,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33088
33106
|
}
|
|
33089
33107
|
|
|
33090
33108
|
const cfgOrigin = cfg.origin || cfg.rtcCenter;
|
|
33091
|
-
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
33109
|
+
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$13) : this._origin;
|
|
33092
33110
|
|
|
33093
33111
|
switch (primitive) {
|
|
33094
33112
|
case "triangles":
|
|
@@ -33352,7 +33370,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33352
33370
|
if (!origin) {
|
|
33353
33371
|
origin = cfgOrigin;
|
|
33354
33372
|
} else {
|
|
33355
|
-
origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
33373
|
+
origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$13);
|
|
33356
33374
|
}
|
|
33357
33375
|
} else {
|
|
33358
33376
|
origin = this._origin;
|
|
@@ -45980,7 +45998,7 @@ function buildFragmentDraw(mesh) {
|
|
|
45980
45998
|
* @author xeolabs / https://github.com/xeolabs
|
|
45981
45999
|
*/
|
|
45982
46000
|
|
|
45983
|
-
const tempVec3a$
|
|
46001
|
+
const tempVec3a$12 = math.vec3();
|
|
45984
46002
|
|
|
45985
46003
|
const ids$2 = new Map$1({});
|
|
45986
46004
|
|
|
@@ -46079,7 +46097,7 @@ DrawRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
46079
46097
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
46080
46098
|
if (active) {
|
|
46081
46099
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
46082
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
46100
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$12) : sectionPlane.pos);
|
|
46083
46101
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
46084
46102
|
}
|
|
46085
46103
|
}
|
|
@@ -47217,7 +47235,7 @@ function buildFragment$5(mesh) {
|
|
|
47217
47235
|
|
|
47218
47236
|
const ids$1 = new Map$1({});
|
|
47219
47237
|
|
|
47220
|
-
const tempVec3a$
|
|
47238
|
+
const tempVec3a$11 = math.vec3();
|
|
47221
47239
|
|
|
47222
47240
|
/**
|
|
47223
47241
|
* @private
|
|
@@ -47301,7 +47319,7 @@ EmphasisFillRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
|
|
|
47301
47319
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
47302
47320
|
if (active) {
|
|
47303
47321
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
47304
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
47322
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
|
|
47305
47323
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
47306
47324
|
}
|
|
47307
47325
|
}
|
|
@@ -47637,7 +47655,7 @@ function buildFragment$4(mesh) {
|
|
|
47637
47655
|
|
|
47638
47656
|
const ids = new Map$1({});
|
|
47639
47657
|
|
|
47640
|
-
const tempVec3a
|
|
47658
|
+
const tempVec3a$10 = math.vec3();
|
|
47641
47659
|
|
|
47642
47660
|
/**
|
|
47643
47661
|
* @private
|
|
@@ -47720,7 +47738,7 @@ EmphasisEdgesRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
|
|
|
47720
47738
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
47721
47739
|
if (active) {
|
|
47722
47740
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
47723
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a
|
|
47741
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
|
|
47724
47742
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
47725
47743
|
}
|
|
47726
47744
|
}
|
|
@@ -48015,7 +48033,7 @@ function buildFragment$3(mesh) {
|
|
|
48015
48033
|
* @author xeolabs / https://github.com/xeolabs
|
|
48016
48034
|
*/
|
|
48017
48035
|
|
|
48018
|
-
const tempVec3a
|
|
48036
|
+
const tempVec3a$$ = math.vec3();
|
|
48019
48037
|
|
|
48020
48038
|
// No ID, because there is exactly one PickMeshRenderer per scene
|
|
48021
48039
|
|
|
@@ -48099,7 +48117,7 @@ PickMeshRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48099
48117
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48100
48118
|
if (active) {
|
|
48101
48119
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48102
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a
|
|
48120
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
|
|
48103
48121
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48104
48122
|
}
|
|
48105
48123
|
}
|
|
@@ -48332,7 +48350,7 @@ function buildFragment$2(mesh) {
|
|
|
48332
48350
|
* @author xeolabs / https://github.com/xeolabs
|
|
48333
48351
|
*/
|
|
48334
48352
|
|
|
48335
|
-
const tempVec3a$
|
|
48353
|
+
const tempVec3a$_ = math.vec3();
|
|
48336
48354
|
|
|
48337
48355
|
/**
|
|
48338
48356
|
* @private
|
|
@@ -48424,7 +48442,7 @@ PickTriangleRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48424
48442
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48425
48443
|
if (active) {
|
|
48426
48444
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48427
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
48445
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
|
|
48428
48446
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48429
48447
|
}
|
|
48430
48448
|
}
|
|
@@ -48661,7 +48679,7 @@ function buildFragment$1(mesh) {
|
|
|
48661
48679
|
* @author xeolabs / https://github.com/xeolabs
|
|
48662
48680
|
*/
|
|
48663
48681
|
|
|
48664
|
-
const tempVec3a$
|
|
48682
|
+
const tempVec3a$Z = math.vec3();
|
|
48665
48683
|
|
|
48666
48684
|
// No ID, because there is exactly one PickMeshRenderer per scene
|
|
48667
48685
|
|
|
@@ -48769,7 +48787,7 @@ OcclusionRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48769
48787
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48770
48788
|
if (active) {
|
|
48771
48789
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48772
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
48790
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
|
|
48773
48791
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48774
48792
|
}
|
|
48775
48793
|
}
|
|
@@ -61371,8 +61389,8 @@ class LineSet extends Component {
|
|
|
61371
61389
|
}
|
|
61372
61390
|
|
|
61373
61391
|
const tempVec3$4 = math.vec3();
|
|
61374
|
-
const tempVec3a$
|
|
61375
|
-
const tempVec3b$
|
|
61392
|
+
const tempVec3a$Y = math.vec3();
|
|
61393
|
+
const tempVec3b$a = math.vec3();
|
|
61376
61394
|
const tempVec3c$6 = math.vec3();
|
|
61377
61395
|
|
|
61378
61396
|
/**
|
|
@@ -62052,8 +62070,8 @@ class BCFViewpointsPlugin extends Plugin {
|
|
|
62052
62070
|
bcfViewpoint.bitmaps.forEach(function (e) {
|
|
62053
62071
|
const bitmap_type = e.bitmap_type || "jpg"; // "jpg" | "png"
|
|
62054
62072
|
const bitmap_data = e.bitmap_data; // base64
|
|
62055
|
-
let location = xyzObjectToArray(e.location, tempVec3a$
|
|
62056
|
-
let normal = xyzObjectToArray(e.normal, tempVec3b$
|
|
62073
|
+
let location = xyzObjectToArray(e.location, tempVec3a$Y);
|
|
62074
|
+
let normal = xyzObjectToArray(e.normal, tempVec3b$a);
|
|
62057
62075
|
let up = xyzObjectToArray(e.up, tempVec3c$6);
|
|
62058
62076
|
let height = e.height || 1;
|
|
62059
62077
|
if (!bitmap_type) {
|
|
@@ -62381,11 +62399,16 @@ class DistanceMeasurement extends Component {
|
|
|
62381
62399
|
cfg.onContextMenu(event, this);
|
|
62382
62400
|
} : null;
|
|
62383
62401
|
|
|
62402
|
+
const onMouseWheel = (event) => {
|
|
62403
|
+
this.plugin.viewer.scene.canvas.canvas.dispatchEvent(new WheelEvent('wheel', event));
|
|
62404
|
+
};
|
|
62405
|
+
|
|
62384
62406
|
this._originDot = new Dot(this._container, {
|
|
62385
62407
|
fillColor: this._color,
|
|
62386
62408
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2 : undefined,
|
|
62387
62409
|
onMouseOver,
|
|
62388
62410
|
onMouseLeave,
|
|
62411
|
+
onMouseWheel,
|
|
62389
62412
|
onContextMenu
|
|
62390
62413
|
});
|
|
62391
62414
|
|
|
@@ -62394,6 +62417,7 @@ class DistanceMeasurement extends Component {
|
|
|
62394
62417
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 2 : undefined,
|
|
62395
62418
|
onMouseOver,
|
|
62396
62419
|
onMouseLeave,
|
|
62420
|
+
onMouseWheel,
|
|
62397
62421
|
onContextMenu
|
|
62398
62422
|
});
|
|
62399
62423
|
|
|
@@ -62404,6 +62428,7 @@ class DistanceMeasurement extends Component {
|
|
|
62404
62428
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1 : undefined,
|
|
62405
62429
|
onMouseOver,
|
|
62406
62430
|
onMouseLeave,
|
|
62431
|
+
onMouseWheel,
|
|
62407
62432
|
onContextMenu
|
|
62408
62433
|
});
|
|
62409
62434
|
|
|
@@ -62414,6 +62439,7 @@ class DistanceMeasurement extends Component {
|
|
|
62414
62439
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1 : undefined,
|
|
62415
62440
|
onMouseOver,
|
|
62416
62441
|
onMouseLeave,
|
|
62442
|
+
onMouseWheel,
|
|
62417
62443
|
onContextMenu
|
|
62418
62444
|
});
|
|
62419
62445
|
|
|
@@ -62424,6 +62450,7 @@ class DistanceMeasurement extends Component {
|
|
|
62424
62450
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1 : undefined,
|
|
62425
62451
|
onMouseOver,
|
|
62426
62452
|
onMouseLeave,
|
|
62453
|
+
onMouseWheel,
|
|
62427
62454
|
onContextMenu
|
|
62428
62455
|
});
|
|
62429
62456
|
|
|
@@ -62434,6 +62461,7 @@ class DistanceMeasurement extends Component {
|
|
|
62434
62461
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 1 : undefined,
|
|
62435
62462
|
onMouseOver,
|
|
62436
62463
|
onMouseLeave,
|
|
62464
|
+
onMouseWheel,
|
|
62437
62465
|
onContextMenu
|
|
62438
62466
|
});
|
|
62439
62467
|
|
|
@@ -62444,6 +62472,7 @@ class DistanceMeasurement extends Component {
|
|
|
62444
62472
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 4 : undefined,
|
|
62445
62473
|
onMouseOver,
|
|
62446
62474
|
onMouseLeave,
|
|
62475
|
+
onMouseWheel,
|
|
62447
62476
|
onContextMenu
|
|
62448
62477
|
});
|
|
62449
62478
|
|
|
@@ -62454,6 +62483,7 @@ class DistanceMeasurement extends Component {
|
|
|
62454
62483
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3 : undefined,
|
|
62455
62484
|
onMouseOver,
|
|
62456
62485
|
onMouseLeave,
|
|
62486
|
+
onMouseWheel,
|
|
62457
62487
|
onContextMenu
|
|
62458
62488
|
});
|
|
62459
62489
|
|
|
@@ -62464,6 +62494,7 @@ class DistanceMeasurement extends Component {
|
|
|
62464
62494
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3 : undefined,
|
|
62465
62495
|
onMouseOver,
|
|
62466
62496
|
onMouseLeave,
|
|
62497
|
+
onMouseWheel,
|
|
62467
62498
|
onContextMenu
|
|
62468
62499
|
});
|
|
62469
62500
|
|
|
@@ -62474,6 +62505,7 @@ class DistanceMeasurement extends Component {
|
|
|
62474
62505
|
zIndex: plugin.zIndex !== undefined ? plugin.zIndex + 3 : undefined,
|
|
62475
62506
|
onMouseOver,
|
|
62476
62507
|
onMouseLeave,
|
|
62508
|
+
onMouseWheel,
|
|
62477
62509
|
onContextMenu
|
|
62478
62510
|
});
|
|
62479
62511
|
|
|
@@ -63942,7 +63974,7 @@ class SplineCurve extends Curve {
|
|
|
63942
63974
|
}
|
|
63943
63975
|
}
|
|
63944
63976
|
|
|
63945
|
-
const tempVec3a$
|
|
63977
|
+
const tempVec3a$X = math.vec3();
|
|
63946
63978
|
|
|
63947
63979
|
/**
|
|
63948
63980
|
* @desc Defines a sequence of frames along which a {@link CameraPathAnimation} can animate a {@link Camera}.
|
|
@@ -64074,9 +64106,9 @@ class CameraPath extends Component {
|
|
|
64074
64106
|
t = t / (this._frames[this._frames.length - 1].t - this._frames[0].t);
|
|
64075
64107
|
t = t < 0.0 ? 0.0 : (t > 1.0 ? 1.0 : t);
|
|
64076
64108
|
|
|
64077
|
-
camera.eye = this._eyeCurve.getPoint(t, tempVec3a$
|
|
64078
|
-
camera.look = this._lookCurve.getPoint(t, tempVec3a$
|
|
64079
|
-
camera.up = this._upCurve.getPoint(t, tempVec3a$
|
|
64109
|
+
camera.eye = this._eyeCurve.getPoint(t, tempVec3a$X);
|
|
64110
|
+
camera.look = this._lookCurve.getPoint(t, tempVec3a$X);
|
|
64111
|
+
camera.up = this._upCurve.getPoint(t, tempVec3a$X);
|
|
64080
64112
|
}
|
|
64081
64113
|
|
|
64082
64114
|
/**
|
|
@@ -65115,7 +65147,7 @@ CameraPathAnimation.PLAYING = 2;
|
|
|
65115
65147
|
CameraPathAnimation.PLAYING_TO = 3;
|
|
65116
65148
|
|
|
65117
65149
|
const tempVec3$2 = math.vec3();
|
|
65118
|
-
const tempVec3b$
|
|
65150
|
+
const tempVec3b$9 = math.vec3();
|
|
65119
65151
|
math.vec3();
|
|
65120
65152
|
const zeroVec$1 = math.vec3([0, -1, 0]);
|
|
65121
65153
|
const tempQuat = math.vec4([0, 0, 0, 1]);
|
|
@@ -65543,7 +65575,7 @@ class ImagePlane extends Component {
|
|
|
65543
65575
|
const dist = -math.dotVec3(negDir, tempVec3$2);
|
|
65544
65576
|
|
|
65545
65577
|
math.normalizeVec3(negDir);
|
|
65546
|
-
math.mulVec3Scalar(negDir, dist, tempVec3b$
|
|
65578
|
+
math.mulVec3Scalar(negDir, dist, tempVec3b$9);
|
|
65547
65579
|
math.vec3PairToQuaternion(zeroVec$1, dir, tempQuat);
|
|
65548
65580
|
|
|
65549
65581
|
this._node.quaternion = tempQuat;
|
|
@@ -66709,8 +66741,8 @@ class SpriteMarker extends Marker {
|
|
|
66709
66741
|
}
|
|
66710
66742
|
}
|
|
66711
66743
|
|
|
66712
|
-
const tempVec3a$
|
|
66713
|
-
const tempVec3b$
|
|
66744
|
+
const tempVec3a$W = math.vec3();
|
|
66745
|
+
const tempVec3b$8 = math.vec3();
|
|
66714
66746
|
const tempMat4a = math.mat4();
|
|
66715
66747
|
|
|
66716
66748
|
/**
|
|
@@ -66787,8 +66819,8 @@ function frustumIntersectsAABB3(frustum, aabb) {
|
|
|
66787
66819
|
|
|
66788
66820
|
let ret = Frustum.INSIDE;
|
|
66789
66821
|
|
|
66790
|
-
const min = tempVec3a$
|
|
66791
|
-
const max = tempVec3b$
|
|
66822
|
+
const min = tempVec3a$W;
|
|
66823
|
+
const max = tempVec3b$8;
|
|
66792
66824
|
|
|
66793
66825
|
min[0] = aabb[0];
|
|
66794
66826
|
min[1] = aabb[1];
|
|
@@ -69369,7 +69401,7 @@ const RENDER_PASSES = {
|
|
|
69369
69401
|
};
|
|
69370
69402
|
|
|
69371
69403
|
const tempVec4$7 = math.vec4();
|
|
69372
|
-
const tempVec3a$
|
|
69404
|
+
const tempVec3a$V = math.vec3();
|
|
69373
69405
|
|
|
69374
69406
|
/**
|
|
69375
69407
|
* @private
|
|
@@ -69434,7 +69466,7 @@ class TrianglesBatchingColorRenderer {
|
|
|
69434
69466
|
if (active) {
|
|
69435
69467
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
69436
69468
|
if (origin) {
|
|
69437
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
69469
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$V);
|
|
69438
69470
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
69439
69471
|
} else {
|
|
69440
69472
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -69862,7 +69894,7 @@ class TrianglesBatchingColorRenderer {
|
|
|
69862
69894
|
}
|
|
69863
69895
|
|
|
69864
69896
|
const tempVec4$6 = math.vec4();
|
|
69865
|
-
const tempVec3a$
|
|
69897
|
+
const tempVec3a$U = math.vec3();
|
|
69866
69898
|
|
|
69867
69899
|
/**
|
|
69868
69900
|
* @private
|
|
@@ -69924,7 +69956,7 @@ class TrianglesBatchingFlatColorRenderer {
|
|
|
69924
69956
|
if (active) {
|
|
69925
69957
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
69926
69958
|
if (origin) {
|
|
69927
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
69959
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
|
|
69928
69960
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
69929
69961
|
} else {
|
|
69930
69962
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70341,7 +70373,7 @@ class TrianglesBatchingFlatColorRenderer {
|
|
|
70341
70373
|
}
|
|
70342
70374
|
|
|
70343
70375
|
const defaultColor$4 = new Float32Array([1, 1, 1]);
|
|
70344
|
-
const tempVec3a$
|
|
70376
|
+
const tempVec3a$T = math.vec3();
|
|
70345
70377
|
|
|
70346
70378
|
/**
|
|
70347
70379
|
* @private
|
|
@@ -70425,7 +70457,7 @@ class TrianglesBatchingSilhouetteRenderer {
|
|
|
70425
70457
|
if (active) {
|
|
70426
70458
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
70427
70459
|
if (origin) {
|
|
70428
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
70460
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
|
|
70429
70461
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
70430
70462
|
} else {
|
|
70431
70463
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70662,7 +70694,7 @@ class TrianglesBatchingSilhouetteRenderer {
|
|
|
70662
70694
|
}
|
|
70663
70695
|
}
|
|
70664
70696
|
|
|
70665
|
-
const tempVec3a$
|
|
70697
|
+
const tempVec3a$S = math.vec3();
|
|
70666
70698
|
const defaultColor$3 = new Float32Array([0,0,0,1]);
|
|
70667
70699
|
|
|
70668
70700
|
/**
|
|
@@ -70745,7 +70777,7 @@ class TrianglesBatchingEdgesRenderer {
|
|
|
70745
70777
|
if (active) {
|
|
70746
70778
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
70747
70779
|
if (origin) {
|
|
70748
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
70780
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
|
|
70749
70781
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
70750
70782
|
} else {
|
|
70751
70783
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70973,7 +71005,7 @@ class TrianglesBatchingEdgesRenderer {
|
|
|
70973
71005
|
}
|
|
70974
71006
|
}
|
|
70975
71007
|
|
|
70976
|
-
const tempVec3a$
|
|
71008
|
+
const tempVec3a$R = math.vec3();
|
|
70977
71009
|
|
|
70978
71010
|
/**
|
|
70979
71011
|
* @private
|
|
@@ -71033,7 +71065,7 @@ class TrianglesBatchingEdgesColorRenderer {
|
|
|
71033
71065
|
if (active) {
|
|
71034
71066
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71035
71067
|
if (origin) {
|
|
71036
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71068
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
|
|
71037
71069
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71038
71070
|
} else {
|
|
71039
71071
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71261,7 +71293,7 @@ class TrianglesBatchingEdgesColorRenderer {
|
|
|
71261
71293
|
}
|
|
71262
71294
|
}
|
|
71263
71295
|
|
|
71264
|
-
const tempVec3a$
|
|
71296
|
+
const tempVec3a$Q = math.vec3();
|
|
71265
71297
|
|
|
71266
71298
|
/**
|
|
71267
71299
|
* @private
|
|
@@ -71327,7 +71359,7 @@ class TrianglesBatchingPickMeshRenderer {
|
|
|
71327
71359
|
if (active) {
|
|
71328
71360
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71329
71361
|
if (origin) {
|
|
71330
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71362
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
|
|
71331
71363
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71332
71364
|
} else {
|
|
71333
71365
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71557,7 +71589,7 @@ class TrianglesBatchingPickMeshRenderer {
|
|
|
71557
71589
|
}
|
|
71558
71590
|
}
|
|
71559
71591
|
|
|
71560
|
-
const tempVec3a$
|
|
71592
|
+
const tempVec3a$P = math.vec3();
|
|
71561
71593
|
|
|
71562
71594
|
/**
|
|
71563
71595
|
* @private
|
|
@@ -71628,7 +71660,7 @@ class TrianglesBatchingPickDepthRenderer {
|
|
|
71628
71660
|
if (active) {
|
|
71629
71661
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71630
71662
|
if (origin) {
|
|
71631
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71663
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
|
|
71632
71664
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71633
71665
|
} else {
|
|
71634
71666
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71866,7 +71898,7 @@ class TrianglesBatchingPickDepthRenderer {
|
|
|
71866
71898
|
}
|
|
71867
71899
|
}
|
|
71868
71900
|
|
|
71869
|
-
const tempVec3a$
|
|
71901
|
+
const tempVec3a$O = math.vec3();
|
|
71870
71902
|
|
|
71871
71903
|
/**
|
|
71872
71904
|
* @private
|
|
@@ -71934,7 +71966,7 @@ class TrianglesBatchingPickNormalsRenderer {
|
|
|
71934
71966
|
if (active) {
|
|
71935
71967
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71936
71968
|
if (origin) {
|
|
71937
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71969
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
|
|
71938
71970
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71939
71971
|
} else {
|
|
71940
71972
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72159,7 +72191,7 @@ class TrianglesBatchingPickNormalsRenderer {
|
|
|
72159
72191
|
}
|
|
72160
72192
|
}
|
|
72161
72193
|
|
|
72162
|
-
const tempVec3a$
|
|
72194
|
+
const tempVec3a$N = math.vec3();
|
|
72163
72195
|
|
|
72164
72196
|
/**
|
|
72165
72197
|
* @private
|
|
@@ -72219,7 +72251,7 @@ class TrianglesBatchingOcclusionRenderer {
|
|
|
72219
72251
|
if (active) {
|
|
72220
72252
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72221
72253
|
if (origin) {
|
|
72222
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72254
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
|
|
72223
72255
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72224
72256
|
} else {
|
|
72225
72257
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72442,7 +72474,7 @@ class TrianglesBatchingOcclusionRenderer {
|
|
|
72442
72474
|
}
|
|
72443
72475
|
}
|
|
72444
72476
|
|
|
72445
|
-
const tempVec3a$
|
|
72477
|
+
const tempVec3a$M = math.vec3();
|
|
72446
72478
|
|
|
72447
72479
|
/**
|
|
72448
72480
|
* @private
|
|
@@ -72502,7 +72534,7 @@ class TrianglesBatchingDepthRenderer {
|
|
|
72502
72534
|
if (active) {
|
|
72503
72535
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72504
72536
|
if (origin) {
|
|
72505
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72537
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
|
|
72506
72538
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72507
72539
|
} else {
|
|
72508
72540
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72726,7 +72758,7 @@ class TrianglesBatchingDepthRenderer {
|
|
|
72726
72758
|
}
|
|
72727
72759
|
}
|
|
72728
72760
|
|
|
72729
|
-
const tempVec3a$
|
|
72761
|
+
const tempVec3a$L = math.vec3();
|
|
72730
72762
|
|
|
72731
72763
|
/**
|
|
72732
72764
|
* @private
|
|
@@ -72789,7 +72821,7 @@ class TrianglesBatchingNormalsRenderer {
|
|
|
72789
72821
|
if (active) {
|
|
72790
72822
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72791
72823
|
if (origin) {
|
|
72792
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72824
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
|
|
72793
72825
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72794
72826
|
} else {
|
|
72795
72827
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -73029,7 +73061,7 @@ class TrianglesBatchingNormalsRenderer {
|
|
|
73029
73061
|
}
|
|
73030
73062
|
}
|
|
73031
73063
|
|
|
73032
|
-
const tempVec3a$
|
|
73064
|
+
const tempVec3a$K = math.vec3();
|
|
73033
73065
|
|
|
73034
73066
|
/**
|
|
73035
73067
|
* Renders BatchingLayer fragment depths to a shadow map.
|
|
@@ -73098,7 +73130,7 @@ class TrianglesBatchingShadowRenderer {
|
|
|
73098
73130
|
if (active) {
|
|
73099
73131
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
73100
73132
|
if (origin) {
|
|
73101
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
73133
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
|
|
73102
73134
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
73103
73135
|
} else {
|
|
73104
73136
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -73270,7 +73302,7 @@ class TrianglesBatchingShadowRenderer {
|
|
|
73270
73302
|
}
|
|
73271
73303
|
|
|
73272
73304
|
const tempVec4$5 = math.vec4();
|
|
73273
|
-
const tempVec3a$
|
|
73305
|
+
const tempVec3a$J = math.vec3();
|
|
73274
73306
|
|
|
73275
73307
|
// const TEXTURE_DECODE_FUNCS = {};
|
|
73276
73308
|
// TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
|
|
@@ -73343,7 +73375,7 @@ class TrianglesBatchingPBRRenderer {
|
|
|
73343
73375
|
if (active) {
|
|
73344
73376
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
73345
73377
|
if (origin) {
|
|
73346
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
73378
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
|
|
73347
73379
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
73348
73380
|
} else {
|
|
73349
73381
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -74148,7 +74180,7 @@ class TrianglesBatchingPBRRenderer {
|
|
|
74148
74180
|
}
|
|
74149
74181
|
}
|
|
74150
74182
|
|
|
74151
|
-
const tempVec3a$
|
|
74183
|
+
const tempVec3a$I = math.vec3();
|
|
74152
74184
|
|
|
74153
74185
|
/**
|
|
74154
74186
|
* @private
|
|
@@ -74215,7 +74247,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
|
|
|
74215
74247
|
if (active) {
|
|
74216
74248
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
74217
74249
|
if (origin) {
|
|
74218
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
74250
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
|
|
74219
74251
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
74220
74252
|
} else {
|
|
74221
74253
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -74425,7 +74457,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
|
|
|
74425
74457
|
}
|
|
74426
74458
|
|
|
74427
74459
|
const tempVec4$4 = math.vec4();
|
|
74428
|
-
const tempVec3a$
|
|
74460
|
+
const tempVec3a$H = math.vec3();
|
|
74429
74461
|
|
|
74430
74462
|
/**
|
|
74431
74463
|
* @private
|
|
@@ -74490,7 +74522,7 @@ class TrianglesBatchingColorTextureRenderer {
|
|
|
74490
74522
|
if (active) {
|
|
74491
74523
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
74492
74524
|
if (origin) {
|
|
74493
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
74525
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
|
|
74494
74526
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
74495
74527
|
} else {
|
|
74496
74528
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -75496,8 +75528,8 @@ const tempVec4b$a = math.vec4([0, 0, 0, 1]);
|
|
|
75496
75528
|
const tempVec4c$7 = math.vec4([0, 0, 0, 1]);
|
|
75497
75529
|
const tempOBB3$2 = math.OBB3();
|
|
75498
75530
|
|
|
75499
|
-
const tempVec3a$
|
|
75500
|
-
const tempVec3b$
|
|
75531
|
+
const tempVec3a$G = math.vec3();
|
|
75532
|
+
const tempVec3b$7 = math.vec3();
|
|
75501
75533
|
const tempVec3c$5 = math.vec3();
|
|
75502
75534
|
const tempVec3d$2 = math.vec3();
|
|
75503
75535
|
const tempVec3e$1 = math.vec3();
|
|
@@ -76676,8 +76708,8 @@ class TrianglesBatchingLayer {
|
|
|
76676
76708
|
const origin = state.origin;
|
|
76677
76709
|
const offset = portion.offset;
|
|
76678
76710
|
|
|
76679
|
-
const rtcRayOrigin = tempVec3a$
|
|
76680
|
-
const rtcRayDir = tempVec3b$
|
|
76711
|
+
const rtcRayOrigin = tempVec3a$G;
|
|
76712
|
+
const rtcRayDir = tempVec3b$7;
|
|
76681
76713
|
|
|
76682
76714
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$5) : worldRayOrigin); // World -> RTC
|
|
76683
76715
|
rtcRayDir.set(worldRayDir);
|
|
@@ -76800,7 +76832,7 @@ class TrianglesBatchingLayer {
|
|
|
76800
76832
|
}
|
|
76801
76833
|
|
|
76802
76834
|
const tempVec4$3 = math.vec4();
|
|
76803
|
-
const tempVec3a$
|
|
76835
|
+
const tempVec3a$F = math.vec3();
|
|
76804
76836
|
|
|
76805
76837
|
/**
|
|
76806
76838
|
* @private
|
|
@@ -76866,7 +76898,7 @@ class TrianglesInstancingColorRenderer {
|
|
|
76866
76898
|
if (active) {
|
|
76867
76899
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
76868
76900
|
if (origin) {
|
|
76869
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
76901
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$F);
|
|
76870
76902
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
76871
76903
|
} else {
|
|
76872
76904
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -77343,7 +77375,7 @@ class TrianglesInstancingColorRenderer {
|
|
|
77343
77375
|
}
|
|
77344
77376
|
|
|
77345
77377
|
const tempVec4$2 = math.vec4();
|
|
77346
|
-
const tempVec3a$
|
|
77378
|
+
const tempVec3a$E = math.vec3();
|
|
77347
77379
|
|
|
77348
77380
|
/**
|
|
77349
77381
|
* @private
|
|
@@ -77405,7 +77437,7 @@ class TrianglesInstancingFlatColorRenderer {
|
|
|
77405
77437
|
if (active) {
|
|
77406
77438
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
77407
77439
|
if (origin) {
|
|
77408
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
77440
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
|
|
77409
77441
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
77410
77442
|
} else {
|
|
77411
77443
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -77852,7 +77884,7 @@ class TrianglesInstancingFlatColorRenderer {
|
|
|
77852
77884
|
}
|
|
77853
77885
|
}
|
|
77854
77886
|
|
|
77855
|
-
const tempVec3a$
|
|
77887
|
+
const tempVec3a$D = math.vec3();
|
|
77856
77888
|
|
|
77857
77889
|
/**
|
|
77858
77890
|
* @private
|
|
@@ -77935,7 +77967,7 @@ class TrianglesInstancingSilhouetteRenderer {
|
|
|
77935
77967
|
if (active) {
|
|
77936
77968
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
77937
77969
|
if (origin) {
|
|
77938
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
77970
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
|
|
77939
77971
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
77940
77972
|
} else {
|
|
77941
77973
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78207,7 +78239,7 @@ class TrianglesInstancingSilhouetteRenderer {
|
|
|
78207
78239
|
}
|
|
78208
78240
|
}
|
|
78209
78241
|
|
|
78210
|
-
const tempVec3a$
|
|
78242
|
+
const tempVec3a$C = math.vec3();
|
|
78211
78243
|
const defaultColor$2 = new Float32Array([0,0,0,1]);
|
|
78212
78244
|
|
|
78213
78245
|
/**
|
|
@@ -78291,7 +78323,7 @@ class TrianglesInstancingEdgesRenderer {
|
|
|
78291
78323
|
if (active) {
|
|
78292
78324
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78293
78325
|
if (origin) {
|
|
78294
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
78326
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
|
|
78295
78327
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78296
78328
|
} else {
|
|
78297
78329
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78552,7 +78584,7 @@ class TrianglesInstancingEdgesRenderer {
|
|
|
78552
78584
|
}
|
|
78553
78585
|
}
|
|
78554
78586
|
|
|
78555
|
-
const tempVec3a$
|
|
78587
|
+
const tempVec3a$B = math.vec3();
|
|
78556
78588
|
|
|
78557
78589
|
/**
|
|
78558
78590
|
* @private
|
|
@@ -78613,7 +78645,7 @@ class TrianglesInstancingEdgesColorRenderer {
|
|
|
78613
78645
|
if (active) {
|
|
78614
78646
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78615
78647
|
if (origin) {
|
|
78616
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
78648
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
|
|
78617
78649
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78618
78650
|
} else {
|
|
78619
78651
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78879,7 +78911,7 @@ class TrianglesInstancingEdgesColorRenderer {
|
|
|
78879
78911
|
}
|
|
78880
78912
|
}
|
|
78881
78913
|
|
|
78882
|
-
const tempVec3a$
|
|
78914
|
+
const tempVec3a$A = math.vec3();
|
|
78883
78915
|
|
|
78884
78916
|
/**
|
|
78885
78917
|
* @private
|
|
@@ -78982,7 +79014,7 @@ class TrianglesInstancingPickMeshRenderer {
|
|
|
78982
79014
|
if (active) {
|
|
78983
79015
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78984
79016
|
if (origin) {
|
|
78985
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79017
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
|
|
78986
79018
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78987
79019
|
} else {
|
|
78988
79020
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79217,7 +79249,7 @@ class TrianglesInstancingPickMeshRenderer {
|
|
|
79217
79249
|
}
|
|
79218
79250
|
}
|
|
79219
79251
|
|
|
79220
|
-
const tempVec3a$
|
|
79252
|
+
const tempVec3a$z = math.vec3();
|
|
79221
79253
|
|
|
79222
79254
|
/**
|
|
79223
79255
|
* @private
|
|
@@ -79294,7 +79326,7 @@ class TrianglesInstancingPickDepthRenderer {
|
|
|
79294
79326
|
if (active) {
|
|
79295
79327
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79296
79328
|
if (origin) {
|
|
79297
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79329
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
|
|
79298
79330
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79299
79331
|
} else {
|
|
79300
79332
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79562,7 +79594,7 @@ class TrianglesInstancingPickDepthRenderer {
|
|
|
79562
79594
|
}
|
|
79563
79595
|
}
|
|
79564
79596
|
|
|
79565
|
-
const tempVec3a$
|
|
79597
|
+
const tempVec3a$y = math.vec3();
|
|
79566
79598
|
|
|
79567
79599
|
/**
|
|
79568
79600
|
* @private
|
|
@@ -79639,7 +79671,7 @@ class TrianglesInstancingPickNormalsRenderer {
|
|
|
79639
79671
|
if (active) {
|
|
79640
79672
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79641
79673
|
if (origin) {
|
|
79642
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79674
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
|
|
79643
79675
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79644
79676
|
} else {
|
|
79645
79677
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79916,7 +79948,7 @@ class TrianglesInstancingPickNormalsRenderer {
|
|
|
79916
79948
|
}
|
|
79917
79949
|
}
|
|
79918
79950
|
|
|
79919
|
-
const tempVec3a$
|
|
79951
|
+
const tempVec3a$x = math.vec3();
|
|
79920
79952
|
|
|
79921
79953
|
/**
|
|
79922
79954
|
* @private
|
|
@@ -79977,7 +80009,7 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
79977
80009
|
if (active) {
|
|
79978
80010
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79979
80011
|
if (origin) {
|
|
79980
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80012
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
|
|
79981
80013
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79982
80014
|
} else {
|
|
79983
80015
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80235,7 +80267,7 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
80235
80267
|
}
|
|
80236
80268
|
}
|
|
80237
80269
|
|
|
80238
|
-
const tempVec3a$
|
|
80270
|
+
const tempVec3a$w = math.vec3();
|
|
80239
80271
|
|
|
80240
80272
|
/**
|
|
80241
80273
|
* @private
|
|
@@ -80296,7 +80328,7 @@ class TrianglesInstancingDepthRenderer {
|
|
|
80296
80328
|
if (active) {
|
|
80297
80329
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80298
80330
|
if (origin) {
|
|
80299
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80331
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
|
|
80300
80332
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80301
80333
|
} else {
|
|
80302
80334
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80546,7 +80578,7 @@ class TrianglesInstancingDepthRenderer {
|
|
|
80546
80578
|
}
|
|
80547
80579
|
}
|
|
80548
80580
|
|
|
80549
|
-
const tempVec3a$
|
|
80581
|
+
const tempVec3a$v = math.vec3();
|
|
80550
80582
|
|
|
80551
80583
|
/**
|
|
80552
80584
|
* @private
|
|
@@ -80610,7 +80642,7 @@ class TrianglesInstancingNormalsRenderer {
|
|
|
80610
80642
|
if (active) {
|
|
80611
80643
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80612
80644
|
if (origin) {
|
|
80613
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80645
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
|
|
80614
80646
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80615
80647
|
} else {
|
|
80616
80648
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80890,7 +80922,7 @@ class TrianglesInstancingNormalsRenderer {
|
|
|
80890
80922
|
}
|
|
80891
80923
|
}
|
|
80892
80924
|
|
|
80893
|
-
const tempVec3a$
|
|
80925
|
+
const tempVec3a$u = math.vec3();
|
|
80894
80926
|
|
|
80895
80927
|
/**
|
|
80896
80928
|
* Renders InstancingLayer fragment depths to a shadow map.
|
|
@@ -80977,7 +81009,7 @@ class TrianglesInstancingShadowRenderer {
|
|
|
80977
81009
|
if (active) {
|
|
80978
81010
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80979
81011
|
if (origin) {
|
|
80980
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
81012
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
|
|
80981
81013
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80982
81014
|
} else {
|
|
80983
81015
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -81170,7 +81202,7 @@ class TrianglesInstancingShadowRenderer {
|
|
|
81170
81202
|
}
|
|
81171
81203
|
|
|
81172
81204
|
const tempVec4$1 = math.vec4();
|
|
81173
|
-
const tempVec3a$
|
|
81205
|
+
const tempVec3a$t = math.vec3();
|
|
81174
81206
|
|
|
81175
81207
|
const TEXTURE_DECODE_FUNCS = {};
|
|
81176
81208
|
TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
|
|
@@ -81244,7 +81276,7 @@ class TrianglesInstancingPBRRenderer {
|
|
|
81244
81276
|
if (active) {
|
|
81245
81277
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
81246
81278
|
if (origin) {
|
|
81247
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
81279
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
|
|
81248
81280
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
81249
81281
|
} else {
|
|
81250
81282
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -82080,7 +82112,7 @@ class TrianglesInstancingPBRRenderer {
|
|
|
82080
82112
|
}
|
|
82081
82113
|
}
|
|
82082
82114
|
|
|
82083
|
-
const tempVec3a$
|
|
82115
|
+
const tempVec3a$s = math.vec3();
|
|
82084
82116
|
|
|
82085
82117
|
/**
|
|
82086
82118
|
* @private
|
|
@@ -82155,7 +82187,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
|
|
|
82155
82187
|
if (active) {
|
|
82156
82188
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
82157
82189
|
if (origin) {
|
|
82158
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
82190
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
|
|
82159
82191
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
82160
82192
|
} else {
|
|
82161
82193
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -82395,7 +82427,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
|
|
|
82395
82427
|
}
|
|
82396
82428
|
|
|
82397
82429
|
const tempVec4 = math.vec4();
|
|
82398
|
-
const tempVec3a$
|
|
82430
|
+
const tempVec3a$r = math.vec3();
|
|
82399
82431
|
|
|
82400
82432
|
/**
|
|
82401
82433
|
* @private
|
|
@@ -82460,7 +82492,7 @@ class TrianglesInstancingColorTextureRenderer {
|
|
|
82460
82492
|
if (active) {
|
|
82461
82493
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
82462
82494
|
if (origin) {
|
|
82463
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
82495
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
|
|
82464
82496
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
82465
82497
|
} else {
|
|
82466
82498
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -83271,8 +83303,8 @@ const tempVec4b$9 = math.vec4([0, 0, 0, 1]);
|
|
|
83271
83303
|
const tempVec4c$6 = math.vec4([0, 0, 0, 1]);
|
|
83272
83304
|
const tempVec3fa$2 = new Float32Array(3);
|
|
83273
83305
|
|
|
83274
|
-
const tempVec3a$
|
|
83275
|
-
const tempVec3b$
|
|
83306
|
+
const tempVec3a$q = math.vec3();
|
|
83307
|
+
const tempVec3b$6 = math.vec3();
|
|
83276
83308
|
const tempVec3c$4 = math.vec3();
|
|
83277
83309
|
const tempVec3d$1 = math.vec3();
|
|
83278
83310
|
const tempVec3e = math.vec3();
|
|
@@ -84200,8 +84232,8 @@ class TrianglesInstancingLayer {
|
|
|
84200
84232
|
const origin = state.origin;
|
|
84201
84233
|
const offset = portion.offset;
|
|
84202
84234
|
|
|
84203
|
-
const rtcRayOrigin = tempVec3a$
|
|
84204
|
-
const rtcRayDir = tempVec3b$
|
|
84235
|
+
const rtcRayOrigin = tempVec3a$q;
|
|
84236
|
+
const rtcRayDir = tempVec3b$6;
|
|
84205
84237
|
|
|
84206
84238
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$4) : worldRayOrigin); // World -> RTC
|
|
84207
84239
|
rtcRayDir.set(worldRayDir);
|
|
@@ -84334,7 +84366,7 @@ class TrianglesInstancingLayer {
|
|
|
84334
84366
|
}
|
|
84335
84367
|
}
|
|
84336
84368
|
|
|
84337
|
-
const tempVec3a$
|
|
84369
|
+
const tempVec3a$p = math.vec3();
|
|
84338
84370
|
|
|
84339
84371
|
/**
|
|
84340
84372
|
* @private
|
|
@@ -84397,7 +84429,7 @@ class LinesBatchingColorRenderer {
|
|
|
84397
84429
|
if (active) {
|
|
84398
84430
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
84399
84431
|
if (origin) {
|
|
84400
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
84432
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$p);
|
|
84401
84433
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
84402
84434
|
} else {
|
|
84403
84435
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -84617,7 +84649,7 @@ class LinesBatchingColorRenderer {
|
|
|
84617
84649
|
}
|
|
84618
84650
|
|
|
84619
84651
|
const defaultColor$1 = new Float32Array([1, 1, 1]);
|
|
84620
|
-
const tempVec3a$
|
|
84652
|
+
const tempVec3a$o = math.vec3();
|
|
84621
84653
|
|
|
84622
84654
|
/**
|
|
84623
84655
|
* @private
|
|
@@ -84704,7 +84736,7 @@ class LinesBatchingSilhouetteRenderer {
|
|
|
84704
84736
|
if (active) {
|
|
84705
84737
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
84706
84738
|
if (origin) {
|
|
84707
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
84739
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
|
|
84708
84740
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
84709
84741
|
} else {
|
|
84710
84742
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -85801,7 +85833,7 @@ class LinesBatchingLayer {
|
|
|
85801
85833
|
}
|
|
85802
85834
|
}
|
|
85803
85835
|
|
|
85804
|
-
const tempVec3a$
|
|
85836
|
+
const tempVec3a$n = math.vec3();
|
|
85805
85837
|
|
|
85806
85838
|
/**
|
|
85807
85839
|
* @private
|
|
@@ -85864,7 +85896,7 @@ class LinesInstancingColorRenderer {
|
|
|
85864
85896
|
if (active) {
|
|
85865
85897
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
85866
85898
|
if (origin) {
|
|
85867
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
85899
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
|
|
85868
85900
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
85869
85901
|
} else {
|
|
85870
85902
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -86146,7 +86178,7 @@ class LinesInstancingColorRenderer {
|
|
|
86146
86178
|
}
|
|
86147
86179
|
}
|
|
86148
86180
|
|
|
86149
|
-
const tempVec3a$
|
|
86181
|
+
const tempVec3a$m = math.vec3();
|
|
86150
86182
|
|
|
86151
86183
|
/**
|
|
86152
86184
|
* @private
|
|
@@ -86231,7 +86263,7 @@ class LinesInstancingSilhouetteRenderer {
|
|
|
86231
86263
|
if (active) {
|
|
86232
86264
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
86233
86265
|
if (origin) {
|
|
86234
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
86266
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
|
|
86235
86267
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
86236
86268
|
} else {
|
|
86237
86269
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87213,7 +87245,7 @@ class LinesInstancingLayer {
|
|
|
87213
87245
|
}
|
|
87214
87246
|
}
|
|
87215
87247
|
|
|
87216
|
-
const tempVec3a$
|
|
87248
|
+
const tempVec3a$l = math.vec3();
|
|
87217
87249
|
|
|
87218
87250
|
/**
|
|
87219
87251
|
* @private
|
|
@@ -87274,7 +87306,7 @@ class PointsBatchingColorRenderer {
|
|
|
87274
87306
|
if (active) {
|
|
87275
87307
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87276
87308
|
if (origin) {
|
|
87277
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87309
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
|
|
87278
87310
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87279
87311
|
} else {
|
|
87280
87312
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87559,7 +87591,7 @@ class PointsBatchingColorRenderer {
|
|
|
87559
87591
|
}
|
|
87560
87592
|
|
|
87561
87593
|
const defaultColor = new Float32Array([1, 1, 1]);
|
|
87562
|
-
const tempVec3a$
|
|
87594
|
+
const tempVec3a$k = math.vec3();
|
|
87563
87595
|
|
|
87564
87596
|
/**
|
|
87565
87597
|
* @private
|
|
@@ -87644,7 +87676,7 @@ class PointsBatchingSilhouetteRenderer {
|
|
|
87644
87676
|
if (active) {
|
|
87645
87677
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87646
87678
|
if (origin) {
|
|
87647
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87679
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
|
|
87648
87680
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87649
87681
|
} else {
|
|
87650
87682
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87888,7 +87920,7 @@ class PointsBatchingSilhouetteRenderer {
|
|
|
87888
87920
|
}
|
|
87889
87921
|
}
|
|
87890
87922
|
|
|
87891
|
-
const tempVec3a$
|
|
87923
|
+
const tempVec3a$j = math.vec3();
|
|
87892
87924
|
|
|
87893
87925
|
/**
|
|
87894
87926
|
* @private
|
|
@@ -87955,7 +87987,7 @@ class PointsBatchingPickMeshRenderer {
|
|
|
87955
87987
|
if (active) {
|
|
87956
87988
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87957
87989
|
if (origin) {
|
|
87958
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87990
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
|
|
87959
87991
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87960
87992
|
} else {
|
|
87961
87993
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88200,7 +88232,7 @@ class PointsBatchingPickMeshRenderer {
|
|
|
88200
88232
|
}
|
|
88201
88233
|
}
|
|
88202
88234
|
|
|
88203
|
-
const tempVec3a$
|
|
88235
|
+
const tempVec3a$i = math.vec3();
|
|
88204
88236
|
|
|
88205
88237
|
/**
|
|
88206
88238
|
* @private
|
|
@@ -88272,7 +88304,7 @@ class PointsBatchingPickDepthRenderer {
|
|
|
88272
88304
|
if (active) {
|
|
88273
88305
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
88274
88306
|
if (origin) {
|
|
88275
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
88307
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
|
|
88276
88308
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
88277
88309
|
} else {
|
|
88278
88310
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88523,7 +88555,7 @@ class PointsBatchingPickDepthRenderer {
|
|
|
88523
88555
|
}
|
|
88524
88556
|
}
|
|
88525
88557
|
|
|
88526
|
-
const tempVec3a$
|
|
88558
|
+
const tempVec3a$h = math.vec3();
|
|
88527
88559
|
|
|
88528
88560
|
/**
|
|
88529
88561
|
* @private
|
|
@@ -88584,7 +88616,7 @@ class PointsBatchingOcclusionRenderer {
|
|
|
88584
88616
|
if (active) {
|
|
88585
88617
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
88586
88618
|
if (origin) {
|
|
88587
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
88619
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
|
|
88588
88620
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
88589
88621
|
} else {
|
|
88590
88622
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88950,8 +88982,8 @@ class PointsBatchingBuffer {
|
|
|
88950
88982
|
}
|
|
88951
88983
|
}
|
|
88952
88984
|
|
|
88953
|
-
const tempVec3a$
|
|
88954
|
-
const tempVec3b$
|
|
88985
|
+
const tempVec3a$g = math.vec4();
|
|
88986
|
+
const tempVec3b$5 = math.vec4();
|
|
88955
88987
|
const tempVec4a$6 = math.vec4([0, 0, 0, 1]);
|
|
88956
88988
|
const tempVec4b$6 = math.vec4([0, 0, 0, 1]);
|
|
88957
88989
|
const tempVec4c$3 = math.vec4([0, 0, 0, 1]);
|
|
@@ -89103,8 +89135,8 @@ class PointsBatchingLayer {
|
|
|
89103
89135
|
|
|
89104
89136
|
const bounds = geometryCompressionUtils.getPositionsBounds(positionsCompressed);
|
|
89105
89137
|
|
|
89106
|
-
const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$
|
|
89107
|
-
const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$
|
|
89138
|
+
const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$g);
|
|
89139
|
+
const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$5);
|
|
89108
89140
|
|
|
89109
89141
|
worldAABB[0] = min[0];
|
|
89110
89142
|
worldAABB[1] = min[1];
|
|
@@ -89742,7 +89774,7 @@ class PointsBatchingLayer {
|
|
|
89742
89774
|
}
|
|
89743
89775
|
}
|
|
89744
89776
|
|
|
89745
|
-
const tempVec3a$
|
|
89777
|
+
const tempVec3a$f = math.vec3();
|
|
89746
89778
|
|
|
89747
89779
|
/**
|
|
89748
89780
|
* @private
|
|
@@ -89811,7 +89843,7 @@ class PointsInstancingColorRenderer {
|
|
|
89811
89843
|
if (active) {
|
|
89812
89844
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
89813
89845
|
if (origin) {
|
|
89814
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
89846
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$f);
|
|
89815
89847
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
89816
89848
|
} else {
|
|
89817
89849
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90121,7 +90153,7 @@ class PointsInstancingColorRenderer {
|
|
|
90121
90153
|
}
|
|
90122
90154
|
}
|
|
90123
90155
|
|
|
90124
|
-
const tempVec3a$
|
|
90156
|
+
const tempVec3a$e = math.vec3();
|
|
90125
90157
|
|
|
90126
90158
|
/**
|
|
90127
90159
|
* @private
|
|
@@ -90205,7 +90237,7 @@ class PointsInstancingSilhouetteRenderer {
|
|
|
90205
90237
|
if (active) {
|
|
90206
90238
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90207
90239
|
if (origin) {
|
|
90208
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90240
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
|
|
90209
90241
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90210
90242
|
} else {
|
|
90211
90243
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90486,7 +90518,7 @@ class PointsInstancingSilhouetteRenderer {
|
|
|
90486
90518
|
}
|
|
90487
90519
|
}
|
|
90488
90520
|
|
|
90489
|
-
const tempVec3a$
|
|
90521
|
+
const tempVec3a$d = math.vec3();
|
|
90490
90522
|
|
|
90491
90523
|
/**
|
|
90492
90524
|
* @private
|
|
@@ -90592,7 +90624,7 @@ class PointsInstancingPickMeshRenderer {
|
|
|
90592
90624
|
if (active) {
|
|
90593
90625
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90594
90626
|
if (origin) {
|
|
90595
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90627
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
|
|
90596
90628
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90597
90629
|
} else {
|
|
90598
90630
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90843,7 +90875,7 @@ class PointsInstancingPickMeshRenderer {
|
|
|
90843
90875
|
}
|
|
90844
90876
|
}
|
|
90845
90877
|
|
|
90846
|
-
const tempVec3a$
|
|
90878
|
+
const tempVec3a$c = math.vec3();
|
|
90847
90879
|
|
|
90848
90880
|
/**
|
|
90849
90881
|
* @private
|
|
@@ -90921,7 +90953,7 @@ class PointsInstancingPickDepthRenderer {
|
|
|
90921
90953
|
if (active) {
|
|
90922
90954
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90923
90955
|
if (origin) {
|
|
90924
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90956
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
|
|
90925
90957
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90926
90958
|
} else {
|
|
90927
90959
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91209,7 +91241,7 @@ class PointsInstancingPickDepthRenderer {
|
|
|
91209
91241
|
}
|
|
91210
91242
|
}
|
|
91211
91243
|
|
|
91212
|
-
const tempVec3a$
|
|
91244
|
+
const tempVec3a$b = math.vec3();
|
|
91213
91245
|
|
|
91214
91246
|
/**
|
|
91215
91247
|
* @private
|
|
@@ -91271,7 +91303,7 @@ class PointsInstancingOcclusionRenderer {
|
|
|
91271
91303
|
if (active) {
|
|
91272
91304
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91273
91305
|
if (origin) {
|
|
91274
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
91306
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
|
|
91275
91307
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
91276
91308
|
} else {
|
|
91277
91309
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91560,7 +91592,7 @@ class PointsInstancingOcclusionRenderer {
|
|
|
91560
91592
|
}
|
|
91561
91593
|
}
|
|
91562
91594
|
|
|
91563
|
-
const tempVec3a$
|
|
91595
|
+
const tempVec3a$a = math.vec3();
|
|
91564
91596
|
|
|
91565
91597
|
/**
|
|
91566
91598
|
* @private
|
|
@@ -91622,7 +91654,7 @@ class PointsInstancingDepthRenderer {
|
|
|
91622
91654
|
if (active) {
|
|
91623
91655
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91624
91656
|
if (origin) {
|
|
91625
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
91657
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
|
|
91626
91658
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
91627
91659
|
} else {
|
|
91628
91660
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91906,7 +91938,7 @@ class PointsInstancingDepthRenderer {
|
|
|
91906
91938
|
}
|
|
91907
91939
|
}
|
|
91908
91940
|
|
|
91909
|
-
const tempVec3a$
|
|
91941
|
+
const tempVec3a$9 = math.vec3();
|
|
91910
91942
|
|
|
91911
91943
|
/**
|
|
91912
91944
|
* Renders InstancingLayer fragment depths to a shadow map.
|
|
@@ -91993,7 +92025,7 @@ class PointsInstancingShadowRenderer {
|
|
|
91993
92025
|
if (active) {
|
|
91994
92026
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91995
92027
|
if (origin) {
|
|
91996
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
92028
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
|
|
91997
92029
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
91998
92030
|
} else {
|
|
91999
92031
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -94334,7 +94366,7 @@ function getKTX2TextureTranscoder(viewer) {
|
|
|
94334
94366
|
return transcoder;
|
|
94335
94367
|
}
|
|
94336
94368
|
|
|
94337
|
-
const tempVec3a$
|
|
94369
|
+
const tempVec3a$8 = math.vec3();
|
|
94338
94370
|
const tempMat4$1 = math.mat4();
|
|
94339
94371
|
|
|
94340
94372
|
const defaultScale = math.vec3([1, 1, 1]);
|
|
@@ -96715,7 +96747,7 @@ class VBOSceneModel extends Component {
|
|
|
96715
96747
|
}
|
|
96716
96748
|
|
|
96717
96749
|
const cfgOrigin = cfg.origin || cfg.rtcCenter;
|
|
96718
|
-
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
96750
|
+
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$8) : this._origin;
|
|
96719
96751
|
|
|
96720
96752
|
const instancingLayer = this._getInstancingLayer(origin, textureSetId, geometryId);
|
|
96721
96753
|
|
|
@@ -96777,7 +96809,7 @@ class VBOSceneModel extends Component {
|
|
|
96777
96809
|
|
|
96778
96810
|
let indices = cfg.indices;
|
|
96779
96811
|
let edgeIndices = cfg.edgeIndices;
|
|
96780
|
-
let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$
|
|
96812
|
+
let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$8) : this._origin;
|
|
96781
96813
|
let positions = cfg.positions;
|
|
96782
96814
|
|
|
96783
96815
|
if (positions) {
|
|
@@ -97791,8 +97823,8 @@ class TextureTranscoder {
|
|
|
97791
97823
|
const screenPos = math.vec4();
|
|
97792
97824
|
const viewPos = math.vec4();
|
|
97793
97825
|
|
|
97794
|
-
const tempVec3a$
|
|
97795
|
-
const tempVec3b$
|
|
97826
|
+
const tempVec3a$7 = math.vec3();
|
|
97827
|
+
const tempVec3b$4 = math.vec3();
|
|
97796
97828
|
const tempVec3c$3 = math.vec3();
|
|
97797
97829
|
|
|
97798
97830
|
const tempVec4a$4 = math.vec4();
|
|
@@ -97826,7 +97858,7 @@ class PanController {
|
|
|
97826
97858
|
const camera = this._scene.camera;
|
|
97827
97859
|
|
|
97828
97860
|
if (optionalTargetWorldPos) {
|
|
97829
|
-
const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$
|
|
97861
|
+
const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
|
|
97830
97862
|
const eyeWorldPosDist = math.lenVec3(eyeToWorldPosVec);
|
|
97831
97863
|
dolliedThroughSurface = (eyeWorldPosDist < dollyDelta);
|
|
97832
97864
|
}
|
|
@@ -97850,9 +97882,9 @@ class PanController {
|
|
|
97850
97882
|
// suddenly a lot closer than the point we pivoted about on the surface of the last object
|
|
97851
97883
|
// that we click-drag-pivoted on.
|
|
97852
97884
|
|
|
97853
|
-
const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$
|
|
97885
|
+
const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
|
|
97854
97886
|
const lenEyeTargetVec = math.lenVec3(eyeTargetVec);
|
|
97855
|
-
const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$
|
|
97887
|
+
const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$4)), lenEyeTargetVec);
|
|
97856
97888
|
camera.look = [camera.eye[0] + eyeLookVec[0], camera.eye[1] + eyeLookVec[1], camera.eye[2] + eyeLookVec[2]];
|
|
97857
97889
|
}
|
|
97858
97890
|
|
|
@@ -97869,7 +97901,7 @@ class PanController {
|
|
|
97869
97901
|
|
|
97870
97902
|
const worldPos2 = this._unproject(targetCanvasPos, tempVec4b$4);
|
|
97871
97903
|
const offset = math.subVec3(worldPos2, worldPos1, tempVec4c$1);
|
|
97872
|
-
const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$
|
|
97904
|
+
const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$7)), -dollyDelta, tempVec3b$4);
|
|
97873
97905
|
const moveVec = math.addVec3(offset, eyeLookMoveVec, tempVec3c$3);
|
|
97874
97906
|
|
|
97875
97907
|
camera.eye = [camera.eye[0] - moveVec[0], camera.eye[1] - moveVec[1], camera.eye[2] - moveVec[2]];
|
|
@@ -97897,8 +97929,8 @@ class PanController {
|
|
|
97897
97929
|
}
|
|
97898
97930
|
}
|
|
97899
97931
|
|
|
97900
|
-
const tempVec3a$
|
|
97901
|
-
const tempVec3b$
|
|
97932
|
+
const tempVec3a$6 = math.vec3();
|
|
97933
|
+
const tempVec3b$3 = math.vec3();
|
|
97902
97934
|
const tempVec3c$2 = math.vec3();
|
|
97903
97935
|
|
|
97904
97936
|
const tempVec4a$3 = math.vec4();
|
|
@@ -98030,8 +98062,8 @@ class PivotController {
|
|
|
98030
98062
|
|
|
98031
98063
|
_cameraLookingDownwards() { // Returns true if angle between camera viewing direction and World-space "up" axis is too small
|
|
98032
98064
|
const camera = this._scene.camera;
|
|
98033
|
-
const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$
|
|
98034
|
-
const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$
|
|
98065
|
+
const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6));
|
|
98066
|
+
const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$3);
|
|
98035
98067
|
let rightAxisLen = math.sqLenVec3(rightAxis);
|
|
98036
98068
|
return (rightAxisLen <= 0.0001);
|
|
98037
98069
|
}
|
|
@@ -98071,8 +98103,8 @@ class PivotController {
|
|
|
98071
98103
|
const screenZ = math.dotVec4(D, Pt3) / math.dotVec4(D, Pt4);
|
|
98072
98104
|
const worldPos = tempVec4a$3;
|
|
98073
98105
|
camera.project.unproject(canvasPos, screenZ, tempVec4b$3, tempVec4c, worldPos);
|
|
98074
|
-
const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$
|
|
98075
|
-
const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$
|
|
98106
|
+
const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$6));
|
|
98107
|
+
const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$3), tempVec3c$2);
|
|
98076
98108
|
this.setPivotPos(posOnSphere);
|
|
98077
98109
|
}
|
|
98078
98110
|
|
|
@@ -98703,8 +98735,8 @@ class MousePanRotateDollyHandler {
|
|
|
98703
98735
|
}
|
|
98704
98736
|
|
|
98705
98737
|
const center = math.vec3();
|
|
98706
|
-
const tempVec3a$
|
|
98707
|
-
const tempVec3b$
|
|
98738
|
+
const tempVec3a$5 = math.vec3();
|
|
98739
|
+
const tempVec3b$2 = math.vec3();
|
|
98708
98740
|
const tempVec3c$1 = math.vec3();
|
|
98709
98741
|
const tempVec3d = math.vec3();
|
|
98710
98742
|
|
|
@@ -98758,39 +98790,39 @@ class KeyboardAxisViewHandler {
|
|
|
98758
98790
|
|
|
98759
98791
|
if (axisViewRight) {
|
|
98760
98792
|
|
|
98761
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$
|
|
98793
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98762
98794
|
tempCameraTarget.look.set(center);
|
|
98763
98795
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98764
98796
|
|
|
98765
98797
|
} else if (axisViewBack) {
|
|
98766
98798
|
|
|
98767
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$
|
|
98799
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98768
98800
|
tempCameraTarget.look.set(center);
|
|
98769
98801
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98770
98802
|
|
|
98771
98803
|
} else if (axisViewLeft) {
|
|
98772
98804
|
|
|
98773
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$
|
|
98805
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98774
98806
|
tempCameraTarget.look.set(center);
|
|
98775
98807
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98776
98808
|
|
|
98777
98809
|
} else if (axisViewFront) {
|
|
98778
98810
|
|
|
98779
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$
|
|
98811
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98780
98812
|
tempCameraTarget.look.set(center);
|
|
98781
98813
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98782
98814
|
|
|
98783
98815
|
} else if (axisViewTop) {
|
|
98784
98816
|
|
|
98785
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$
|
|
98817
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98786
98818
|
tempCameraTarget.look.set(center);
|
|
98787
|
-
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$
|
|
98819
|
+
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$2), tempVec3c$1));
|
|
98788
98820
|
|
|
98789
98821
|
} else if (axisViewBottom) {
|
|
98790
98822
|
|
|
98791
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$
|
|
98823
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98792
98824
|
tempCameraTarget.look.set(center);
|
|
98793
|
-
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$
|
|
98825
|
+
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$2)));
|
|
98794
98826
|
}
|
|
98795
98827
|
|
|
98796
98828
|
if ((!configs.firstPerson) && configs.followPointer) {
|
|
@@ -113306,6 +113338,10 @@ function CubeTextureCanvas(viewer, cfg = {}) {
|
|
|
113306
113338
|
};
|
|
113307
113339
|
}
|
|
113308
113340
|
|
|
113341
|
+
const tempVec3a$4 = math.vec3();
|
|
113342
|
+
const tempVec3b$1 = math.vec3();
|
|
113343
|
+
math.mat4();
|
|
113344
|
+
|
|
113309
113345
|
/**
|
|
113310
113346
|
* {@link Viewer} plugin that lets us look at the entire {@link Scene} from along a chosen axis or diagonal.
|
|
113311
113347
|
*
|
|
@@ -113443,11 +113479,10 @@ class NavCubePlugin extends Plugin {
|
|
|
113443
113479
|
|
|
113444
113480
|
const rotateTrueNorth = (function () {
|
|
113445
113481
|
const trueNorthMatrix = math.mat4();
|
|
113446
|
-
|
|
113447
|
-
return function (dir, vec) {
|
|
113482
|
+
return function (dir, vec, dest) {
|
|
113448
113483
|
math.identityMat4(trueNorthMatrix);
|
|
113449
113484
|
math.rotationMat4v(dir * self._projectNorthOffsetAngle * math.DEGTORAD, [0, 1, 0], trueNorthMatrix);
|
|
113450
|
-
return math.transformVec3(trueNorthMatrix, vec,
|
|
113485
|
+
return math.transformVec3(trueNorthMatrix, vec, dest)
|
|
113451
113486
|
}
|
|
113452
113487
|
}());
|
|
113453
113488
|
|
|
@@ -113463,7 +113498,8 @@ class NavCubePlugin extends Plugin {
|
|
|
113463
113498
|
eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(eye, look, eyeLookVec)), 5);
|
|
113464
113499
|
|
|
113465
113500
|
if (self._isProjectNorth && self._projectNorthOffsetAngle) {
|
|
113466
|
-
eyeLookVec = rotateTrueNorth(-1, eyeLookVec);
|
|
113501
|
+
eyeLookVec = rotateTrueNorth(-1, eyeLookVec, tempVec3a$4);
|
|
113502
|
+
up = rotateTrueNorth(-1, up, tempVec3b$1);
|
|
113467
113503
|
}
|
|
113468
113504
|
|
|
113469
113505
|
if (self._zUp) { // +Z up
|
|
@@ -113671,10 +113707,11 @@ class NavCubePlugin extends Plugin {
|
|
|
113671
113707
|
}
|
|
113672
113708
|
var dir = self._cubeTextureCanvas.getAreaDir(areaId);
|
|
113673
113709
|
if (dir) {
|
|
113710
|
+
var up = self._cubeTextureCanvas.getAreaUp(areaId);
|
|
113674
113711
|
if (self._isProjectNorth && self._projectNorthOffsetAngle) {
|
|
113675
|
-
dir = rotateTrueNorth(+1, dir);
|
|
113712
|
+
dir = rotateTrueNorth(+1, dir, tempVec3a$4);
|
|
113713
|
+
up = rotateTrueNorth(+1, up, tempVec3b$1);
|
|
113676
113714
|
}
|
|
113677
|
-
var up = self._cubeTextureCanvas.getAreaUp(areaId);
|
|
113678
113715
|
flyTo(dir, up, function () {
|
|
113679
113716
|
if (lastAreaId >= 0) {
|
|
113680
113717
|
self._cubeTextureCanvas.setAreaHighlighted(lastAreaId, false);
|