@xeokit/xeokit-sdk 2.4.0-alpha-19 → 2.4.0-alpha-20
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 +211 -206
- package/dist/xeokit-sdk.es.js +211 -206
- package/dist/xeokit-sdk.es5.js +172 -172
- package/dist/xeokit-sdk.min.cjs.js +2 -2
- package/dist/xeokit-sdk.min.es.js +2 -2
- package/dist/xeokit-sdk.min.es5.js +1 -1
- package/package.json +1 -1
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -8944,7 +8944,7 @@ class VBOSceneModelNode {
|
|
|
8944
8944
|
|
|
8945
8945
|
}
|
|
8946
8946
|
|
|
8947
|
-
const tempVec3a$
|
|
8947
|
+
const tempVec3a$1i = math.vec3();
|
|
8948
8948
|
|
|
8949
8949
|
/**
|
|
8950
8950
|
* Given a view matrix and a relative-to-center (RTC) coordinate origin, returns a view matrix
|
|
@@ -9024,7 +9024,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
|
|
|
9024
9024
|
*/
|
|
9025
9025
|
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
|
|
9026
9026
|
|
|
9027
|
-
const center = math.getPositionsCenter(worldPositions, tempVec3a$
|
|
9027
|
+
const center = math.getPositionsCenter(worldPositions, tempVec3a$1i);
|
|
9028
9028
|
|
|
9029
9029
|
const rtcCenterX = Math.round(center[0] / cellSize) * cellSize;
|
|
9030
9030
|
const rtcCenterY = Math.round(center[1] / cellSize) * cellSize;
|
|
@@ -9060,7 +9060,7 @@ function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
|
|
|
9060
9060
|
*/
|
|
9061
9061
|
function getPlaneRTCPos(dist, dir, rtcCenter, rtcPlanePos) {
|
|
9062
9062
|
const rtcCenterToPlaneDist = math.dotVec3(dir, rtcCenter) + dist;
|
|
9063
|
-
const dirNormalized = math.normalizeVec3(dir, tempVec3a$
|
|
9063
|
+
const dirNormalized = math.normalizeVec3(dir, tempVec3a$1i);
|
|
9064
9064
|
math.mulVec3Scalar(dirNormalized, -rtcCenterToPlaneDist, rtcPlanePos);
|
|
9065
9065
|
return rtcPlanePos;
|
|
9066
9066
|
}
|
|
@@ -11697,8 +11697,8 @@ class Annotation extends Marker {
|
|
|
11697
11697
|
}
|
|
11698
11698
|
}
|
|
11699
11699
|
|
|
11700
|
-
const tempVec3a$
|
|
11701
|
-
const tempVec3b$
|
|
11700
|
+
const tempVec3a$1h = math.vec3();
|
|
11701
|
+
const tempVec3b$d = math.vec3();
|
|
11702
11702
|
const tempVec3c$9 = math.vec3();
|
|
11703
11703
|
|
|
11704
11704
|
/**
|
|
@@ -12175,8 +12175,8 @@ class AnnotationsPlugin extends Plugin {
|
|
|
12175
12175
|
if (!pickResult.worldPos || !pickResult.worldNormal) {
|
|
12176
12176
|
this.error("Param 'pickResult' does not have both worldPos and worldNormal");
|
|
12177
12177
|
} else {
|
|
12178
|
-
const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$
|
|
12179
|
-
const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$
|
|
12178
|
+
const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1h);
|
|
12179
|
+
const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$d);
|
|
12180
12180
|
const offsetWorldPos = math.addVec3(pickResult.worldPos, offsetVec, tempVec3c$9);
|
|
12181
12181
|
worldPos = offsetWorldPos;
|
|
12182
12182
|
entity = pickResult.entity;
|
|
@@ -14372,7 +14372,7 @@ const MARKER_COLOR = math.vec3([1.0, 0.0, 0.0]);
|
|
|
14372
14372
|
const POINT_SIZE = 20;
|
|
14373
14373
|
const MARKER_SPRITE_CLIPZ_OFFSET = -0.001; // Amount that we offset sprite clip Z coords to raise them from surfaces
|
|
14374
14374
|
|
|
14375
|
-
const tempVec3a$
|
|
14375
|
+
const tempVec3a$1g = math.vec3();
|
|
14376
14376
|
|
|
14377
14377
|
/**
|
|
14378
14378
|
* Manages occlusion testing. Private member of a Renderer.
|
|
@@ -14709,7 +14709,7 @@ class OcclusionTester {
|
|
|
14709
14709
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
14710
14710
|
if (active) {
|
|
14711
14711
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
14712
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
14712
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1g));
|
|
14713
14713
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
14714
14714
|
}
|
|
14715
14715
|
}
|
|
@@ -18714,7 +18714,7 @@ class CustomProjection extends Component {
|
|
|
18714
18714
|
}
|
|
18715
18715
|
|
|
18716
18716
|
const tempVec3$6 = math.vec3();
|
|
18717
|
-
const tempVec3b$
|
|
18717
|
+
const tempVec3b$c = math.vec3();
|
|
18718
18718
|
const tempVec3c$8 = math.vec3();
|
|
18719
18719
|
const tempVec3d$4 = math.vec3();
|
|
18720
18720
|
const tempVec3e$3 = math.vec3();
|
|
@@ -19024,7 +19024,7 @@ class Camera extends Component {
|
|
|
19024
19024
|
orbitYaw(angleInc) {
|
|
19025
19025
|
let lookEyeVec = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19026
19026
|
math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
|
|
19027
|
-
lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$
|
|
19027
|
+
lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$c);
|
|
19028
19028
|
this.eye = math.addVec3(this._look, lookEyeVec, tempVec3c$8); // Set eye position as 'look' plus 'eye' vector
|
|
19029
19029
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4); // Rotate 'up' vector
|
|
19030
19030
|
}
|
|
@@ -19042,7 +19042,7 @@ class Camera extends Component {
|
|
|
19042
19042
|
}
|
|
19043
19043
|
}
|
|
19044
19044
|
let eye2 = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19045
|
-
const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$
|
|
19045
|
+
const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
|
|
19046
19046
|
math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
|
|
19047
19047
|
eye2 = math.transformPoint3(tempMat, eye2, tempVec3d$4);
|
|
19048
19048
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3e$3);
|
|
@@ -19057,7 +19057,7 @@ class Camera extends Component {
|
|
|
19057
19057
|
yaw(angleInc) {
|
|
19058
19058
|
let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
|
|
19059
19059
|
math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
|
|
19060
|
-
look2 = math.transformPoint3(tempMat, look2, tempVec3b$
|
|
19060
|
+
look2 = math.transformPoint3(tempMat, look2, tempVec3b$c);
|
|
19061
19061
|
this.look = math.addVec3(look2, this._eye, tempVec3c$8);
|
|
19062
19062
|
if (this._gimbalLock) {
|
|
19063
19063
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4);
|
|
@@ -19077,7 +19077,7 @@ class Camera extends Component {
|
|
|
19077
19077
|
}
|
|
19078
19078
|
}
|
|
19079
19079
|
let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
|
|
19080
|
-
const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$
|
|
19080
|
+
const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$c), math.normalizeVec3(this._up, tempVec3c$8));
|
|
19081
19081
|
math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
|
|
19082
19082
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3f$3);
|
|
19083
19083
|
look2 = math.transformPoint3(tempMat, look2, tempVec3d$4);
|
|
@@ -19094,7 +19094,7 @@ class Camera extends Component {
|
|
|
19094
19094
|
const vec = [0, 0, 0];
|
|
19095
19095
|
let v;
|
|
19096
19096
|
if (pan[0] !== 0) {
|
|
19097
|
-
const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$
|
|
19097
|
+
const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$c));
|
|
19098
19098
|
v = math.mulVec3Scalar(left, pan[0]);
|
|
19099
19099
|
vec[0] += v[0];
|
|
19100
19100
|
vec[1] += v[1];
|
|
@@ -19123,7 +19123,7 @@ class Camera extends Component {
|
|
|
19123
19123
|
*/
|
|
19124
19124
|
zoom(delta) {
|
|
19125
19125
|
const vec = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19126
|
-
const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$
|
|
19126
|
+
const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$c));
|
|
19127
19127
|
const newLenLook = Math.abs(lenLook + delta);
|
|
19128
19128
|
if (newLenLook < 0.5) {
|
|
19129
19129
|
return;
|
|
@@ -19585,7 +19585,7 @@ class Camera extends Component {
|
|
|
19585
19585
|
}
|
|
19586
19586
|
|
|
19587
19587
|
const tempVec4$9 = math.vec4();
|
|
19588
|
-
const tempVec3a$
|
|
19588
|
+
const tempVec3a$1f = math.vec3();
|
|
19589
19589
|
|
|
19590
19590
|
/**
|
|
19591
19591
|
* @private
|
|
@@ -19672,7 +19672,7 @@ class TrianglesDataTextureColorRenderer {
|
|
|
19672
19672
|
if (active) {
|
|
19673
19673
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
19674
19674
|
if (origin) {
|
|
19675
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
19675
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f);
|
|
19676
19676
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
19677
19677
|
} else {
|
|
19678
19678
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -20199,7 +20199,7 @@ class TrianglesDataTextureColorRenderer {
|
|
|
20199
20199
|
|
|
20200
20200
|
const defaultColor$6 = new Float32Array([1, 1, 1]);
|
|
20201
20201
|
math.vec4();
|
|
20202
|
-
const tempVec3a$
|
|
20202
|
+
const tempVec3a$1e = math.vec3();
|
|
20203
20203
|
|
|
20204
20204
|
/**
|
|
20205
20205
|
* @private
|
|
@@ -20307,7 +20307,7 @@ class TrianglesDataTextureSilhouetteRenderer {
|
|
|
20307
20307
|
if (active) {
|
|
20308
20308
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
20309
20309
|
if (origin) {
|
|
20310
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
20310
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
|
|
20311
20311
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
20312
20312
|
} else {
|
|
20313
20313
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -20663,7 +20663,7 @@ class TrianglesDataTextureSilhouetteRenderer {
|
|
|
20663
20663
|
}
|
|
20664
20664
|
}
|
|
20665
20665
|
|
|
20666
|
-
const tempVec3a$
|
|
20666
|
+
const tempVec3a$1d = math.vec3();
|
|
20667
20667
|
const defaultColor$5 = new Float32Array([0,0,0,1]);
|
|
20668
20668
|
|
|
20669
20669
|
/**
|
|
@@ -20763,7 +20763,7 @@ class TrianglesDataTextureEdgesRenderer {
|
|
|
20763
20763
|
if (active) {
|
|
20764
20764
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
20765
20765
|
if (origin) {
|
|
20766
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
20766
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
|
|
20767
20767
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
20768
20768
|
} else {
|
|
20769
20769
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21082,7 +21082,7 @@ class TrianglesDataTextureEdgesRenderer {
|
|
|
21082
21082
|
}
|
|
21083
21083
|
}
|
|
21084
21084
|
|
|
21085
|
-
const tempVec3a$
|
|
21085
|
+
const tempVec3a$1c = math.vec3();
|
|
21086
21086
|
|
|
21087
21087
|
/**
|
|
21088
21088
|
* @private
|
|
@@ -21156,7 +21156,7 @@ class TrianglesDataTextureEdgesColorRenderer {
|
|
|
21156
21156
|
if (active) {
|
|
21157
21157
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
21158
21158
|
if (origin) {
|
|
21159
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
21159
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
|
|
21160
21160
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
21161
21161
|
} else {
|
|
21162
21162
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21484,7 +21484,7 @@ class TrianglesDataTextureEdgesColorRenderer {
|
|
|
21484
21484
|
}
|
|
21485
21485
|
}
|
|
21486
21486
|
|
|
21487
|
-
const tempVec3a$
|
|
21487
|
+
const tempVec3a$1b = math.vec3();
|
|
21488
21488
|
|
|
21489
21489
|
/**
|
|
21490
21490
|
* @private
|
|
@@ -21571,7 +21571,7 @@ class TrianglesDataTexturePickMeshRenderer {
|
|
|
21571
21571
|
if (active) {
|
|
21572
21572
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
21573
21573
|
if (origin) {
|
|
21574
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
21574
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
|
|
21575
21575
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
21576
21576
|
} else {
|
|
21577
21577
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21927,7 +21927,7 @@ class TrianglesDataTexturePickMeshRenderer {
|
|
|
21927
21927
|
}
|
|
21928
21928
|
}
|
|
21929
21929
|
|
|
21930
|
-
const tempVec3a$
|
|
21930
|
+
const tempVec3a$1a = math.vec3();
|
|
21931
21931
|
|
|
21932
21932
|
/**
|
|
21933
21933
|
* @private
|
|
@@ -22019,7 +22019,7 @@ class TrianglesDataTexturePickDepthRenderer {
|
|
|
22019
22019
|
if (active) {
|
|
22020
22020
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
22021
22021
|
if (origin) {
|
|
22022
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
22022
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
|
|
22023
22023
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
22024
22024
|
} else {
|
|
22025
22025
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -22378,7 +22378,7 @@ class TrianglesDataTexturePickDepthRenderer {
|
|
|
22378
22378
|
}
|
|
22379
22379
|
}
|
|
22380
22380
|
|
|
22381
|
-
const tempVec3a$
|
|
22381
|
+
const tempVec3a$19 = math.vec3();
|
|
22382
22382
|
|
|
22383
22383
|
/**
|
|
22384
22384
|
* @private
|
|
@@ -22470,7 +22470,7 @@ class TrianglesDataTexturePickNormalsRenderer {
|
|
|
22470
22470
|
if (active) {
|
|
22471
22471
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
22472
22472
|
if (origin) {
|
|
22473
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
22473
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
|
|
22474
22474
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
22475
22475
|
} else {
|
|
22476
22476
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23034,7 +23034,7 @@ class TrianglesDataTextureOcclusionRenderer {
|
|
|
23034
23034
|
}
|
|
23035
23035
|
|
|
23036
23036
|
math.vec4();
|
|
23037
|
-
const tempVec3a$
|
|
23037
|
+
const tempVec3a$18 = math.vec3();
|
|
23038
23038
|
|
|
23039
23039
|
/**
|
|
23040
23040
|
* @private
|
|
@@ -23119,7 +23119,7 @@ class TrianglesDataTextureDepthRenderer {
|
|
|
23119
23119
|
if (active) {
|
|
23120
23120
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
23121
23121
|
if (origin) {
|
|
23122
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
23122
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
|
|
23123
23123
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
23124
23124
|
} else {
|
|
23125
23125
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23490,7 +23490,7 @@ class TrianglesDataTextureDepthRenderer {
|
|
|
23490
23490
|
}
|
|
23491
23491
|
}
|
|
23492
23492
|
|
|
23493
|
-
const tempVec3a$
|
|
23493
|
+
const tempVec3a$17 = math.vec3();
|
|
23494
23494
|
|
|
23495
23495
|
/**
|
|
23496
23496
|
* @private
|
|
@@ -23553,7 +23553,7 @@ class TrianglesDataTextureNormalsRenderer {
|
|
|
23553
23553
|
if (active) {
|
|
23554
23554
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
23555
23555
|
if (origin) {
|
|
23556
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
23556
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
|
|
23557
23557
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
23558
23558
|
} else {
|
|
23559
23559
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23983,7 +23983,7 @@ class TrianglesDataTextureShadowRenderer {
|
|
|
23983
23983
|
}
|
|
23984
23984
|
|
|
23985
23985
|
const tempVec4$8 = math.vec4();
|
|
23986
|
-
const tempVec3a$
|
|
23986
|
+
const tempVec3a$16 = math.vec3();
|
|
23987
23987
|
|
|
23988
23988
|
const TEXTURE_DECODE_FUNCS$2 = {
|
|
23989
23989
|
"linear": "linearToLinear",
|
|
@@ -24054,7 +24054,7 @@ class TrianglesDataTextureColorQualityRenderer {
|
|
|
24054
24054
|
if (active) {
|
|
24055
24055
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
24056
24056
|
if (origin) {
|
|
24057
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
24057
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
|
|
24058
24058
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
24059
24059
|
} else {
|
|
24060
24060
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -24793,7 +24793,7 @@ class TrianglesDataTextureColorQualityRenderer {
|
|
|
24793
24793
|
}
|
|
24794
24794
|
}
|
|
24795
24795
|
|
|
24796
|
-
const tempVec3a$
|
|
24796
|
+
const tempVec3a$15 = math.vec3();
|
|
24797
24797
|
|
|
24798
24798
|
/**
|
|
24799
24799
|
* @private
|
|
@@ -24907,7 +24907,7 @@ class TrianglesDataTexturePickNormalsFlatRenderer {
|
|
|
24907
24907
|
if (active) {
|
|
24908
24908
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
24909
24909
|
if (origin) {
|
|
24910
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
24910
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
|
|
24911
24911
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
24912
24912
|
} else {
|
|
24913
24913
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -27644,8 +27644,8 @@ const tempUint8Array4 = new Uint8Array (4);
|
|
|
27644
27644
|
|
|
27645
27645
|
const tempFloat32Array3 = new Float32Array (3);
|
|
27646
27646
|
|
|
27647
|
-
const tempVec3a$
|
|
27648
|
-
const tempVec3b$
|
|
27647
|
+
const tempVec3a$14 = math.vec3();
|
|
27648
|
+
const tempVec3b$b = math.vec3();
|
|
27649
27649
|
const tempVec3c$7 = math.vec3();
|
|
27650
27650
|
const tempVec3d$3 = math.vec3();
|
|
27651
27651
|
const tempVec3e$2 = math.vec3();
|
|
@@ -29270,8 +29270,8 @@ class TrianglesDataTextureLayer {
|
|
|
29270
29270
|
const origin = state.origin;
|
|
29271
29271
|
const offset = portion.offset;
|
|
29272
29272
|
|
|
29273
|
-
const rtcRayOrigin = tempVec3a$
|
|
29274
|
-
const rtcRayDir = tempVec3b$
|
|
29273
|
+
const rtcRayOrigin = tempVec3a$14;
|
|
29274
|
+
const rtcRayDir = tempVec3b$b;
|
|
29275
29275
|
|
|
29276
29276
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$7) : worldRayOrigin); // World -> RTC
|
|
29277
29277
|
rtcRayDir.set(worldRayDir);
|
|
@@ -32120,7 +32120,7 @@ class ViewFrustumCullingManager {
|
|
|
32120
32120
|
|
|
32121
32121
|
WEBGL_INFO.SUPPORTED_EXTENSIONS["ANGLE_instanced_arrays"];
|
|
32122
32122
|
|
|
32123
|
-
const tempVec3a$
|
|
32123
|
+
const tempVec3a$13 = math.vec3();
|
|
32124
32124
|
const tempMat4$3 = math.mat4();
|
|
32125
32125
|
|
|
32126
32126
|
const defaultScale$1 = math.vec3([1, 1, 1]);
|
|
@@ -33092,7 +33092,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33092
33092
|
}
|
|
33093
33093
|
|
|
33094
33094
|
const cfgOrigin = cfg.origin || cfg.rtcCenter;
|
|
33095
|
-
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
33095
|
+
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$13) : this._origin;
|
|
33096
33096
|
|
|
33097
33097
|
switch (primitive) {
|
|
33098
33098
|
case "triangles":
|
|
@@ -33356,7 +33356,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33356
33356
|
if (!origin) {
|
|
33357
33357
|
origin = cfgOrigin;
|
|
33358
33358
|
} else {
|
|
33359
|
-
origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
33359
|
+
origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$13);
|
|
33360
33360
|
}
|
|
33361
33361
|
} else {
|
|
33362
33362
|
origin = this._origin;
|
|
@@ -45984,7 +45984,7 @@ function buildFragmentDraw(mesh) {
|
|
|
45984
45984
|
* @author xeolabs / https://github.com/xeolabs
|
|
45985
45985
|
*/
|
|
45986
45986
|
|
|
45987
|
-
const tempVec3a$
|
|
45987
|
+
const tempVec3a$12 = math.vec3();
|
|
45988
45988
|
|
|
45989
45989
|
const ids$2 = new Map$1({});
|
|
45990
45990
|
|
|
@@ -46083,7 +46083,7 @@ DrawRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
46083
46083
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
46084
46084
|
if (active) {
|
|
46085
46085
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
46086
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
46086
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$12) : sectionPlane.pos);
|
|
46087
46087
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
46088
46088
|
}
|
|
46089
46089
|
}
|
|
@@ -47221,7 +47221,7 @@ function buildFragment$5(mesh) {
|
|
|
47221
47221
|
|
|
47222
47222
|
const ids$1 = new Map$1({});
|
|
47223
47223
|
|
|
47224
|
-
const tempVec3a$
|
|
47224
|
+
const tempVec3a$11 = math.vec3();
|
|
47225
47225
|
|
|
47226
47226
|
/**
|
|
47227
47227
|
* @private
|
|
@@ -47305,7 +47305,7 @@ EmphasisFillRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
|
|
|
47305
47305
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
47306
47306
|
if (active) {
|
|
47307
47307
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
47308
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
47308
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
|
|
47309
47309
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
47310
47310
|
}
|
|
47311
47311
|
}
|
|
@@ -47641,7 +47641,7 @@ function buildFragment$4(mesh) {
|
|
|
47641
47641
|
|
|
47642
47642
|
const ids = new Map$1({});
|
|
47643
47643
|
|
|
47644
|
-
const tempVec3a
|
|
47644
|
+
const tempVec3a$10 = math.vec3();
|
|
47645
47645
|
|
|
47646
47646
|
/**
|
|
47647
47647
|
* @private
|
|
@@ -47724,7 +47724,7 @@ EmphasisEdgesRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
|
|
|
47724
47724
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
47725
47725
|
if (active) {
|
|
47726
47726
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
47727
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a
|
|
47727
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
|
|
47728
47728
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
47729
47729
|
}
|
|
47730
47730
|
}
|
|
@@ -48019,7 +48019,7 @@ function buildFragment$3(mesh) {
|
|
|
48019
48019
|
* @author xeolabs / https://github.com/xeolabs
|
|
48020
48020
|
*/
|
|
48021
48021
|
|
|
48022
|
-
const tempVec3a
|
|
48022
|
+
const tempVec3a$$ = math.vec3();
|
|
48023
48023
|
|
|
48024
48024
|
// No ID, because there is exactly one PickMeshRenderer per scene
|
|
48025
48025
|
|
|
@@ -48103,7 +48103,7 @@ PickMeshRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48103
48103
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48104
48104
|
if (active) {
|
|
48105
48105
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48106
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a
|
|
48106
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
|
|
48107
48107
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48108
48108
|
}
|
|
48109
48109
|
}
|
|
@@ -48336,7 +48336,7 @@ function buildFragment$2(mesh) {
|
|
|
48336
48336
|
* @author xeolabs / https://github.com/xeolabs
|
|
48337
48337
|
*/
|
|
48338
48338
|
|
|
48339
|
-
const tempVec3a$
|
|
48339
|
+
const tempVec3a$_ = math.vec3();
|
|
48340
48340
|
|
|
48341
48341
|
/**
|
|
48342
48342
|
* @private
|
|
@@ -48428,7 +48428,7 @@ PickTriangleRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48428
48428
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48429
48429
|
if (active) {
|
|
48430
48430
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48431
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
48431
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
|
|
48432
48432
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48433
48433
|
}
|
|
48434
48434
|
}
|
|
@@ -48665,7 +48665,7 @@ function buildFragment$1(mesh) {
|
|
|
48665
48665
|
* @author xeolabs / https://github.com/xeolabs
|
|
48666
48666
|
*/
|
|
48667
48667
|
|
|
48668
|
-
const tempVec3a$
|
|
48668
|
+
const tempVec3a$Z = math.vec3();
|
|
48669
48669
|
|
|
48670
48670
|
// No ID, because there is exactly one PickMeshRenderer per scene
|
|
48671
48671
|
|
|
@@ -48773,7 +48773,7 @@ OcclusionRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48773
48773
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48774
48774
|
if (active) {
|
|
48775
48775
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48776
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
48776
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
|
|
48777
48777
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48778
48778
|
}
|
|
48779
48779
|
}
|
|
@@ -61375,8 +61375,8 @@ class LineSet extends Component {
|
|
|
61375
61375
|
}
|
|
61376
61376
|
|
|
61377
61377
|
const tempVec3$4 = math.vec3();
|
|
61378
|
-
const tempVec3a$
|
|
61379
|
-
const tempVec3b$
|
|
61378
|
+
const tempVec3a$Y = math.vec3();
|
|
61379
|
+
const tempVec3b$a = math.vec3();
|
|
61380
61380
|
const tempVec3c$6 = math.vec3();
|
|
61381
61381
|
|
|
61382
61382
|
/**
|
|
@@ -62056,8 +62056,8 @@ class BCFViewpointsPlugin extends Plugin {
|
|
|
62056
62056
|
bcfViewpoint.bitmaps.forEach(function (e) {
|
|
62057
62057
|
const bitmap_type = e.bitmap_type || "jpg"; // "jpg" | "png"
|
|
62058
62058
|
const bitmap_data = e.bitmap_data; // base64
|
|
62059
|
-
let location = xyzObjectToArray(e.location, tempVec3a$
|
|
62060
|
-
let normal = xyzObjectToArray(e.normal, tempVec3b$
|
|
62059
|
+
let location = xyzObjectToArray(e.location, tempVec3a$Y);
|
|
62060
|
+
let normal = xyzObjectToArray(e.normal, tempVec3b$a);
|
|
62061
62061
|
let up = xyzObjectToArray(e.up, tempVec3c$6);
|
|
62062
62062
|
let height = e.height || 1;
|
|
62063
62063
|
if (!bitmap_type) {
|
|
@@ -63946,7 +63946,7 @@ class SplineCurve extends Curve {
|
|
|
63946
63946
|
}
|
|
63947
63947
|
}
|
|
63948
63948
|
|
|
63949
|
-
const tempVec3a$
|
|
63949
|
+
const tempVec3a$X = math.vec3();
|
|
63950
63950
|
|
|
63951
63951
|
/**
|
|
63952
63952
|
* @desc Defines a sequence of frames along which a {@link CameraPathAnimation} can animate a {@link Camera}.
|
|
@@ -64078,9 +64078,9 @@ class CameraPath extends Component {
|
|
|
64078
64078
|
t = t / (this._frames[this._frames.length - 1].t - this._frames[0].t);
|
|
64079
64079
|
t = t < 0.0 ? 0.0 : (t > 1.0 ? 1.0 : t);
|
|
64080
64080
|
|
|
64081
|
-
camera.eye = this._eyeCurve.getPoint(t, tempVec3a$
|
|
64082
|
-
camera.look = this._lookCurve.getPoint(t, tempVec3a$
|
|
64083
|
-
camera.up = this._upCurve.getPoint(t, tempVec3a$
|
|
64081
|
+
camera.eye = this._eyeCurve.getPoint(t, tempVec3a$X);
|
|
64082
|
+
camera.look = this._lookCurve.getPoint(t, tempVec3a$X);
|
|
64083
|
+
camera.up = this._upCurve.getPoint(t, tempVec3a$X);
|
|
64084
64084
|
}
|
|
64085
64085
|
|
|
64086
64086
|
/**
|
|
@@ -65119,7 +65119,7 @@ CameraPathAnimation.PLAYING = 2;
|
|
|
65119
65119
|
CameraPathAnimation.PLAYING_TO = 3;
|
|
65120
65120
|
|
|
65121
65121
|
const tempVec3$2 = math.vec3();
|
|
65122
|
-
const tempVec3b$
|
|
65122
|
+
const tempVec3b$9 = math.vec3();
|
|
65123
65123
|
math.vec3();
|
|
65124
65124
|
const zeroVec$1 = math.vec3([0, -1, 0]);
|
|
65125
65125
|
const tempQuat = math.vec4([0, 0, 0, 1]);
|
|
@@ -65547,7 +65547,7 @@ class ImagePlane extends Component {
|
|
|
65547
65547
|
const dist = -math.dotVec3(negDir, tempVec3$2);
|
|
65548
65548
|
|
|
65549
65549
|
math.normalizeVec3(negDir);
|
|
65550
|
-
math.mulVec3Scalar(negDir, dist, tempVec3b$
|
|
65550
|
+
math.mulVec3Scalar(negDir, dist, tempVec3b$9);
|
|
65551
65551
|
math.vec3PairToQuaternion(zeroVec$1, dir, tempQuat);
|
|
65552
65552
|
|
|
65553
65553
|
this._node.quaternion = tempQuat;
|
|
@@ -66713,8 +66713,8 @@ class SpriteMarker extends Marker {
|
|
|
66713
66713
|
}
|
|
66714
66714
|
}
|
|
66715
66715
|
|
|
66716
|
-
const tempVec3a$
|
|
66717
|
-
const tempVec3b$
|
|
66716
|
+
const tempVec3a$W = math.vec3();
|
|
66717
|
+
const tempVec3b$8 = math.vec3();
|
|
66718
66718
|
const tempMat4a = math.mat4();
|
|
66719
66719
|
|
|
66720
66720
|
/**
|
|
@@ -66791,8 +66791,8 @@ function frustumIntersectsAABB3(frustum, aabb) {
|
|
|
66791
66791
|
|
|
66792
66792
|
let ret = Frustum.INSIDE;
|
|
66793
66793
|
|
|
66794
|
-
const min = tempVec3a$
|
|
66795
|
-
const max = tempVec3b$
|
|
66794
|
+
const min = tempVec3a$W;
|
|
66795
|
+
const max = tempVec3b$8;
|
|
66796
66796
|
|
|
66797
66797
|
min[0] = aabb[0];
|
|
66798
66798
|
min[1] = aabb[1];
|
|
@@ -69373,7 +69373,7 @@ const RENDER_PASSES = {
|
|
|
69373
69373
|
};
|
|
69374
69374
|
|
|
69375
69375
|
const tempVec4$7 = math.vec4();
|
|
69376
|
-
const tempVec3a$
|
|
69376
|
+
const tempVec3a$V = math.vec3();
|
|
69377
69377
|
|
|
69378
69378
|
/**
|
|
69379
69379
|
* @private
|
|
@@ -69438,7 +69438,7 @@ class TrianglesBatchingColorRenderer {
|
|
|
69438
69438
|
if (active) {
|
|
69439
69439
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
69440
69440
|
if (origin) {
|
|
69441
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
69441
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$V);
|
|
69442
69442
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
69443
69443
|
} else {
|
|
69444
69444
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -69866,7 +69866,7 @@ class TrianglesBatchingColorRenderer {
|
|
|
69866
69866
|
}
|
|
69867
69867
|
|
|
69868
69868
|
const tempVec4$6 = math.vec4();
|
|
69869
|
-
const tempVec3a$
|
|
69869
|
+
const tempVec3a$U = math.vec3();
|
|
69870
69870
|
|
|
69871
69871
|
/**
|
|
69872
69872
|
* @private
|
|
@@ -69928,7 +69928,7 @@ class TrianglesBatchingFlatColorRenderer {
|
|
|
69928
69928
|
if (active) {
|
|
69929
69929
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
69930
69930
|
if (origin) {
|
|
69931
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
69931
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
|
|
69932
69932
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
69933
69933
|
} else {
|
|
69934
69934
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70345,7 +70345,7 @@ class TrianglesBatchingFlatColorRenderer {
|
|
|
70345
70345
|
}
|
|
70346
70346
|
|
|
70347
70347
|
const defaultColor$4 = new Float32Array([1, 1, 1]);
|
|
70348
|
-
const tempVec3a$
|
|
70348
|
+
const tempVec3a$T = math.vec3();
|
|
70349
70349
|
|
|
70350
70350
|
/**
|
|
70351
70351
|
* @private
|
|
@@ -70429,7 +70429,7 @@ class TrianglesBatchingSilhouetteRenderer {
|
|
|
70429
70429
|
if (active) {
|
|
70430
70430
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
70431
70431
|
if (origin) {
|
|
70432
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
70432
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
|
|
70433
70433
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
70434
70434
|
} else {
|
|
70435
70435
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70666,7 +70666,7 @@ class TrianglesBatchingSilhouetteRenderer {
|
|
|
70666
70666
|
}
|
|
70667
70667
|
}
|
|
70668
70668
|
|
|
70669
|
-
const tempVec3a$
|
|
70669
|
+
const tempVec3a$S = math.vec3();
|
|
70670
70670
|
const defaultColor$3 = new Float32Array([0,0,0,1]);
|
|
70671
70671
|
|
|
70672
70672
|
/**
|
|
@@ -70749,7 +70749,7 @@ class TrianglesBatchingEdgesRenderer {
|
|
|
70749
70749
|
if (active) {
|
|
70750
70750
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
70751
70751
|
if (origin) {
|
|
70752
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
70752
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
|
|
70753
70753
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
70754
70754
|
} else {
|
|
70755
70755
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70977,7 +70977,7 @@ class TrianglesBatchingEdgesRenderer {
|
|
|
70977
70977
|
}
|
|
70978
70978
|
}
|
|
70979
70979
|
|
|
70980
|
-
const tempVec3a$
|
|
70980
|
+
const tempVec3a$R = math.vec3();
|
|
70981
70981
|
|
|
70982
70982
|
/**
|
|
70983
70983
|
* @private
|
|
@@ -71037,7 +71037,7 @@ class TrianglesBatchingEdgesColorRenderer {
|
|
|
71037
71037
|
if (active) {
|
|
71038
71038
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71039
71039
|
if (origin) {
|
|
71040
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71040
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
|
|
71041
71041
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71042
71042
|
} else {
|
|
71043
71043
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71265,7 +71265,7 @@ class TrianglesBatchingEdgesColorRenderer {
|
|
|
71265
71265
|
}
|
|
71266
71266
|
}
|
|
71267
71267
|
|
|
71268
|
-
const tempVec3a$
|
|
71268
|
+
const tempVec3a$Q = math.vec3();
|
|
71269
71269
|
|
|
71270
71270
|
/**
|
|
71271
71271
|
* @private
|
|
@@ -71331,7 +71331,7 @@ class TrianglesBatchingPickMeshRenderer {
|
|
|
71331
71331
|
if (active) {
|
|
71332
71332
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71333
71333
|
if (origin) {
|
|
71334
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71334
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
|
|
71335
71335
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71336
71336
|
} else {
|
|
71337
71337
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71561,7 +71561,7 @@ class TrianglesBatchingPickMeshRenderer {
|
|
|
71561
71561
|
}
|
|
71562
71562
|
}
|
|
71563
71563
|
|
|
71564
|
-
const tempVec3a$
|
|
71564
|
+
const tempVec3a$P = math.vec3();
|
|
71565
71565
|
|
|
71566
71566
|
/**
|
|
71567
71567
|
* @private
|
|
@@ -71632,7 +71632,7 @@ class TrianglesBatchingPickDepthRenderer {
|
|
|
71632
71632
|
if (active) {
|
|
71633
71633
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71634
71634
|
if (origin) {
|
|
71635
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71635
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
|
|
71636
71636
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71637
71637
|
} else {
|
|
71638
71638
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71870,7 +71870,7 @@ class TrianglesBatchingPickDepthRenderer {
|
|
|
71870
71870
|
}
|
|
71871
71871
|
}
|
|
71872
71872
|
|
|
71873
|
-
const tempVec3a$
|
|
71873
|
+
const tempVec3a$O = math.vec3();
|
|
71874
71874
|
|
|
71875
71875
|
/**
|
|
71876
71876
|
* @private
|
|
@@ -71938,7 +71938,7 @@ class TrianglesBatchingPickNormalsRenderer {
|
|
|
71938
71938
|
if (active) {
|
|
71939
71939
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71940
71940
|
if (origin) {
|
|
71941
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71941
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
|
|
71942
71942
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71943
71943
|
} else {
|
|
71944
71944
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72163,7 +72163,7 @@ class TrianglesBatchingPickNormalsRenderer {
|
|
|
72163
72163
|
}
|
|
72164
72164
|
}
|
|
72165
72165
|
|
|
72166
|
-
const tempVec3a$
|
|
72166
|
+
const tempVec3a$N = math.vec3();
|
|
72167
72167
|
|
|
72168
72168
|
/**
|
|
72169
72169
|
* @private
|
|
@@ -72223,7 +72223,7 @@ class TrianglesBatchingOcclusionRenderer {
|
|
|
72223
72223
|
if (active) {
|
|
72224
72224
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72225
72225
|
if (origin) {
|
|
72226
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72226
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
|
|
72227
72227
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72228
72228
|
} else {
|
|
72229
72229
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72446,7 +72446,7 @@ class TrianglesBatchingOcclusionRenderer {
|
|
|
72446
72446
|
}
|
|
72447
72447
|
}
|
|
72448
72448
|
|
|
72449
|
-
const tempVec3a$
|
|
72449
|
+
const tempVec3a$M = math.vec3();
|
|
72450
72450
|
|
|
72451
72451
|
/**
|
|
72452
72452
|
* @private
|
|
@@ -72506,7 +72506,7 @@ class TrianglesBatchingDepthRenderer {
|
|
|
72506
72506
|
if (active) {
|
|
72507
72507
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72508
72508
|
if (origin) {
|
|
72509
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72509
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
|
|
72510
72510
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72511
72511
|
} else {
|
|
72512
72512
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72730,7 +72730,7 @@ class TrianglesBatchingDepthRenderer {
|
|
|
72730
72730
|
}
|
|
72731
72731
|
}
|
|
72732
72732
|
|
|
72733
|
-
const tempVec3a$
|
|
72733
|
+
const tempVec3a$L = math.vec3();
|
|
72734
72734
|
|
|
72735
72735
|
/**
|
|
72736
72736
|
* @private
|
|
@@ -72793,7 +72793,7 @@ class TrianglesBatchingNormalsRenderer {
|
|
|
72793
72793
|
if (active) {
|
|
72794
72794
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72795
72795
|
if (origin) {
|
|
72796
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72796
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
|
|
72797
72797
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72798
72798
|
} else {
|
|
72799
72799
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -73033,7 +73033,7 @@ class TrianglesBatchingNormalsRenderer {
|
|
|
73033
73033
|
}
|
|
73034
73034
|
}
|
|
73035
73035
|
|
|
73036
|
-
const tempVec3a$
|
|
73036
|
+
const tempVec3a$K = math.vec3();
|
|
73037
73037
|
|
|
73038
73038
|
/**
|
|
73039
73039
|
* Renders BatchingLayer fragment depths to a shadow map.
|
|
@@ -73102,7 +73102,7 @@ class TrianglesBatchingShadowRenderer {
|
|
|
73102
73102
|
if (active) {
|
|
73103
73103
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
73104
73104
|
if (origin) {
|
|
73105
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
73105
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
|
|
73106
73106
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
73107
73107
|
} else {
|
|
73108
73108
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -73274,7 +73274,7 @@ class TrianglesBatchingShadowRenderer {
|
|
|
73274
73274
|
}
|
|
73275
73275
|
|
|
73276
73276
|
const tempVec4$5 = math.vec4();
|
|
73277
|
-
const tempVec3a$
|
|
73277
|
+
const tempVec3a$J = math.vec3();
|
|
73278
73278
|
|
|
73279
73279
|
// const TEXTURE_DECODE_FUNCS = {};
|
|
73280
73280
|
// TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
|
|
@@ -73347,7 +73347,7 @@ class TrianglesBatchingPBRRenderer {
|
|
|
73347
73347
|
if (active) {
|
|
73348
73348
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
73349
73349
|
if (origin) {
|
|
73350
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
73350
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
|
|
73351
73351
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
73352
73352
|
} else {
|
|
73353
73353
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -74152,7 +74152,7 @@ class TrianglesBatchingPBRRenderer {
|
|
|
74152
74152
|
}
|
|
74153
74153
|
}
|
|
74154
74154
|
|
|
74155
|
-
const tempVec3a$
|
|
74155
|
+
const tempVec3a$I = math.vec3();
|
|
74156
74156
|
|
|
74157
74157
|
/**
|
|
74158
74158
|
* @private
|
|
@@ -74219,7 +74219,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
|
|
|
74219
74219
|
if (active) {
|
|
74220
74220
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
74221
74221
|
if (origin) {
|
|
74222
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
74222
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
|
|
74223
74223
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
74224
74224
|
} else {
|
|
74225
74225
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -74429,7 +74429,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
|
|
|
74429
74429
|
}
|
|
74430
74430
|
|
|
74431
74431
|
const tempVec4$4 = math.vec4();
|
|
74432
|
-
const tempVec3a$
|
|
74432
|
+
const tempVec3a$H = math.vec3();
|
|
74433
74433
|
|
|
74434
74434
|
/**
|
|
74435
74435
|
* @private
|
|
@@ -74494,7 +74494,7 @@ class TrianglesBatchingColorTextureRenderer {
|
|
|
74494
74494
|
if (active) {
|
|
74495
74495
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
74496
74496
|
if (origin) {
|
|
74497
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
74497
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
|
|
74498
74498
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
74499
74499
|
} else {
|
|
74500
74500
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -75500,8 +75500,8 @@ const tempVec4b$a = math.vec4([0, 0, 0, 1]);
|
|
|
75500
75500
|
const tempVec4c$7 = math.vec4([0, 0, 0, 1]);
|
|
75501
75501
|
const tempOBB3$2 = math.OBB3();
|
|
75502
75502
|
|
|
75503
|
-
const tempVec3a$
|
|
75504
|
-
const tempVec3b$
|
|
75503
|
+
const tempVec3a$G = math.vec3();
|
|
75504
|
+
const tempVec3b$7 = math.vec3();
|
|
75505
75505
|
const tempVec3c$5 = math.vec3();
|
|
75506
75506
|
const tempVec3d$2 = math.vec3();
|
|
75507
75507
|
const tempVec3e$1 = math.vec3();
|
|
@@ -76680,8 +76680,8 @@ class TrianglesBatchingLayer {
|
|
|
76680
76680
|
const origin = state.origin;
|
|
76681
76681
|
const offset = portion.offset;
|
|
76682
76682
|
|
|
76683
|
-
const rtcRayOrigin = tempVec3a$
|
|
76684
|
-
const rtcRayDir = tempVec3b$
|
|
76683
|
+
const rtcRayOrigin = tempVec3a$G;
|
|
76684
|
+
const rtcRayDir = tempVec3b$7;
|
|
76685
76685
|
|
|
76686
76686
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$5) : worldRayOrigin); // World -> RTC
|
|
76687
76687
|
rtcRayDir.set(worldRayDir);
|
|
@@ -76804,7 +76804,7 @@ class TrianglesBatchingLayer {
|
|
|
76804
76804
|
}
|
|
76805
76805
|
|
|
76806
76806
|
const tempVec4$3 = math.vec4();
|
|
76807
|
-
const tempVec3a$
|
|
76807
|
+
const tempVec3a$F = math.vec3();
|
|
76808
76808
|
|
|
76809
76809
|
/**
|
|
76810
76810
|
* @private
|
|
@@ -76870,7 +76870,7 @@ class TrianglesInstancingColorRenderer {
|
|
|
76870
76870
|
if (active) {
|
|
76871
76871
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
76872
76872
|
if (origin) {
|
|
76873
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
76873
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$F);
|
|
76874
76874
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
76875
76875
|
} else {
|
|
76876
76876
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -77347,7 +77347,7 @@ class TrianglesInstancingColorRenderer {
|
|
|
77347
77347
|
}
|
|
77348
77348
|
|
|
77349
77349
|
const tempVec4$2 = math.vec4();
|
|
77350
|
-
const tempVec3a$
|
|
77350
|
+
const tempVec3a$E = math.vec3();
|
|
77351
77351
|
|
|
77352
77352
|
/**
|
|
77353
77353
|
* @private
|
|
@@ -77409,7 +77409,7 @@ class TrianglesInstancingFlatColorRenderer {
|
|
|
77409
77409
|
if (active) {
|
|
77410
77410
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
77411
77411
|
if (origin) {
|
|
77412
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
77412
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
|
|
77413
77413
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
77414
77414
|
} else {
|
|
77415
77415
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -77856,7 +77856,7 @@ class TrianglesInstancingFlatColorRenderer {
|
|
|
77856
77856
|
}
|
|
77857
77857
|
}
|
|
77858
77858
|
|
|
77859
|
-
const tempVec3a$
|
|
77859
|
+
const tempVec3a$D = math.vec3();
|
|
77860
77860
|
|
|
77861
77861
|
/**
|
|
77862
77862
|
* @private
|
|
@@ -77939,7 +77939,7 @@ class TrianglesInstancingSilhouetteRenderer {
|
|
|
77939
77939
|
if (active) {
|
|
77940
77940
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
77941
77941
|
if (origin) {
|
|
77942
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
77942
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
|
|
77943
77943
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
77944
77944
|
} else {
|
|
77945
77945
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78211,7 +78211,7 @@ class TrianglesInstancingSilhouetteRenderer {
|
|
|
78211
78211
|
}
|
|
78212
78212
|
}
|
|
78213
78213
|
|
|
78214
|
-
const tempVec3a$
|
|
78214
|
+
const tempVec3a$C = math.vec3();
|
|
78215
78215
|
const defaultColor$2 = new Float32Array([0,0,0,1]);
|
|
78216
78216
|
|
|
78217
78217
|
/**
|
|
@@ -78295,7 +78295,7 @@ class TrianglesInstancingEdgesRenderer {
|
|
|
78295
78295
|
if (active) {
|
|
78296
78296
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78297
78297
|
if (origin) {
|
|
78298
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
78298
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
|
|
78299
78299
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78300
78300
|
} else {
|
|
78301
78301
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78556,7 +78556,7 @@ class TrianglesInstancingEdgesRenderer {
|
|
|
78556
78556
|
}
|
|
78557
78557
|
}
|
|
78558
78558
|
|
|
78559
|
-
const tempVec3a$
|
|
78559
|
+
const tempVec3a$B = math.vec3();
|
|
78560
78560
|
|
|
78561
78561
|
/**
|
|
78562
78562
|
* @private
|
|
@@ -78617,7 +78617,7 @@ class TrianglesInstancingEdgesColorRenderer {
|
|
|
78617
78617
|
if (active) {
|
|
78618
78618
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78619
78619
|
if (origin) {
|
|
78620
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
78620
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
|
|
78621
78621
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78622
78622
|
} else {
|
|
78623
78623
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78883,7 +78883,7 @@ class TrianglesInstancingEdgesColorRenderer {
|
|
|
78883
78883
|
}
|
|
78884
78884
|
}
|
|
78885
78885
|
|
|
78886
|
-
const tempVec3a$
|
|
78886
|
+
const tempVec3a$A = math.vec3();
|
|
78887
78887
|
|
|
78888
78888
|
/**
|
|
78889
78889
|
* @private
|
|
@@ -78986,7 +78986,7 @@ class TrianglesInstancingPickMeshRenderer {
|
|
|
78986
78986
|
if (active) {
|
|
78987
78987
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78988
78988
|
if (origin) {
|
|
78989
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
78989
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
|
|
78990
78990
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78991
78991
|
} else {
|
|
78992
78992
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79221,7 +79221,7 @@ class TrianglesInstancingPickMeshRenderer {
|
|
|
79221
79221
|
}
|
|
79222
79222
|
}
|
|
79223
79223
|
|
|
79224
|
-
const tempVec3a$
|
|
79224
|
+
const tempVec3a$z = math.vec3();
|
|
79225
79225
|
|
|
79226
79226
|
/**
|
|
79227
79227
|
* @private
|
|
@@ -79298,7 +79298,7 @@ class TrianglesInstancingPickDepthRenderer {
|
|
|
79298
79298
|
if (active) {
|
|
79299
79299
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79300
79300
|
if (origin) {
|
|
79301
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79301
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
|
|
79302
79302
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79303
79303
|
} else {
|
|
79304
79304
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79566,7 +79566,7 @@ class TrianglesInstancingPickDepthRenderer {
|
|
|
79566
79566
|
}
|
|
79567
79567
|
}
|
|
79568
79568
|
|
|
79569
|
-
const tempVec3a$
|
|
79569
|
+
const tempVec3a$y = math.vec3();
|
|
79570
79570
|
|
|
79571
79571
|
/**
|
|
79572
79572
|
* @private
|
|
@@ -79643,7 +79643,7 @@ class TrianglesInstancingPickNormalsRenderer {
|
|
|
79643
79643
|
if (active) {
|
|
79644
79644
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79645
79645
|
if (origin) {
|
|
79646
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79646
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
|
|
79647
79647
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79648
79648
|
} else {
|
|
79649
79649
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79920,7 +79920,7 @@ class TrianglesInstancingPickNormalsRenderer {
|
|
|
79920
79920
|
}
|
|
79921
79921
|
}
|
|
79922
79922
|
|
|
79923
|
-
const tempVec3a$
|
|
79923
|
+
const tempVec3a$x = math.vec3();
|
|
79924
79924
|
|
|
79925
79925
|
/**
|
|
79926
79926
|
* @private
|
|
@@ -79981,7 +79981,7 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
79981
79981
|
if (active) {
|
|
79982
79982
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79983
79983
|
if (origin) {
|
|
79984
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79984
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
|
|
79985
79985
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79986
79986
|
} else {
|
|
79987
79987
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80239,7 +80239,7 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
80239
80239
|
}
|
|
80240
80240
|
}
|
|
80241
80241
|
|
|
80242
|
-
const tempVec3a$
|
|
80242
|
+
const tempVec3a$w = math.vec3();
|
|
80243
80243
|
|
|
80244
80244
|
/**
|
|
80245
80245
|
* @private
|
|
@@ -80300,7 +80300,7 @@ class TrianglesInstancingDepthRenderer {
|
|
|
80300
80300
|
if (active) {
|
|
80301
80301
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80302
80302
|
if (origin) {
|
|
80303
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80303
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
|
|
80304
80304
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80305
80305
|
} else {
|
|
80306
80306
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80550,7 +80550,7 @@ class TrianglesInstancingDepthRenderer {
|
|
|
80550
80550
|
}
|
|
80551
80551
|
}
|
|
80552
80552
|
|
|
80553
|
-
const tempVec3a$
|
|
80553
|
+
const tempVec3a$v = math.vec3();
|
|
80554
80554
|
|
|
80555
80555
|
/**
|
|
80556
80556
|
* @private
|
|
@@ -80614,7 +80614,7 @@ class TrianglesInstancingNormalsRenderer {
|
|
|
80614
80614
|
if (active) {
|
|
80615
80615
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80616
80616
|
if (origin) {
|
|
80617
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80617
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
|
|
80618
80618
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80619
80619
|
} else {
|
|
80620
80620
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80894,7 +80894,7 @@ class TrianglesInstancingNormalsRenderer {
|
|
|
80894
80894
|
}
|
|
80895
80895
|
}
|
|
80896
80896
|
|
|
80897
|
-
const tempVec3a$
|
|
80897
|
+
const tempVec3a$u = math.vec3();
|
|
80898
80898
|
|
|
80899
80899
|
/**
|
|
80900
80900
|
* Renders InstancingLayer fragment depths to a shadow map.
|
|
@@ -80981,7 +80981,7 @@ class TrianglesInstancingShadowRenderer {
|
|
|
80981
80981
|
if (active) {
|
|
80982
80982
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80983
80983
|
if (origin) {
|
|
80984
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80984
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
|
|
80985
80985
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80986
80986
|
} else {
|
|
80987
80987
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -81174,7 +81174,7 @@ class TrianglesInstancingShadowRenderer {
|
|
|
81174
81174
|
}
|
|
81175
81175
|
|
|
81176
81176
|
const tempVec4$1 = math.vec4();
|
|
81177
|
-
const tempVec3a$
|
|
81177
|
+
const tempVec3a$t = math.vec3();
|
|
81178
81178
|
|
|
81179
81179
|
const TEXTURE_DECODE_FUNCS = {};
|
|
81180
81180
|
TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
|
|
@@ -81248,7 +81248,7 @@ class TrianglesInstancingPBRRenderer {
|
|
|
81248
81248
|
if (active) {
|
|
81249
81249
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
81250
81250
|
if (origin) {
|
|
81251
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
81251
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
|
|
81252
81252
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
81253
81253
|
} else {
|
|
81254
81254
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -82084,7 +82084,7 @@ class TrianglesInstancingPBRRenderer {
|
|
|
82084
82084
|
}
|
|
82085
82085
|
}
|
|
82086
82086
|
|
|
82087
|
-
const tempVec3a$
|
|
82087
|
+
const tempVec3a$s = math.vec3();
|
|
82088
82088
|
|
|
82089
82089
|
/**
|
|
82090
82090
|
* @private
|
|
@@ -82159,7 +82159,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
|
|
|
82159
82159
|
if (active) {
|
|
82160
82160
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
82161
82161
|
if (origin) {
|
|
82162
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
82162
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
|
|
82163
82163
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
82164
82164
|
} else {
|
|
82165
82165
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -82399,7 +82399,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
|
|
|
82399
82399
|
}
|
|
82400
82400
|
|
|
82401
82401
|
const tempVec4 = math.vec4();
|
|
82402
|
-
const tempVec3a$
|
|
82402
|
+
const tempVec3a$r = math.vec3();
|
|
82403
82403
|
|
|
82404
82404
|
/**
|
|
82405
82405
|
* @private
|
|
@@ -82464,7 +82464,7 @@ class TrianglesInstancingColorTextureRenderer {
|
|
|
82464
82464
|
if (active) {
|
|
82465
82465
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
82466
82466
|
if (origin) {
|
|
82467
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
82467
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
|
|
82468
82468
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
82469
82469
|
} else {
|
|
82470
82470
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -83275,8 +83275,8 @@ const tempVec4b$9 = math.vec4([0, 0, 0, 1]);
|
|
|
83275
83275
|
const tempVec4c$6 = math.vec4([0, 0, 0, 1]);
|
|
83276
83276
|
const tempVec3fa$2 = new Float32Array(3);
|
|
83277
83277
|
|
|
83278
|
-
const tempVec3a$
|
|
83279
|
-
const tempVec3b$
|
|
83278
|
+
const tempVec3a$q = math.vec3();
|
|
83279
|
+
const tempVec3b$6 = math.vec3();
|
|
83280
83280
|
const tempVec3c$4 = math.vec3();
|
|
83281
83281
|
const tempVec3d$1 = math.vec3();
|
|
83282
83282
|
const tempVec3e = math.vec3();
|
|
@@ -84204,8 +84204,8 @@ class TrianglesInstancingLayer {
|
|
|
84204
84204
|
const origin = state.origin;
|
|
84205
84205
|
const offset = portion.offset;
|
|
84206
84206
|
|
|
84207
|
-
const rtcRayOrigin = tempVec3a$
|
|
84208
|
-
const rtcRayDir = tempVec3b$
|
|
84207
|
+
const rtcRayOrigin = tempVec3a$q;
|
|
84208
|
+
const rtcRayDir = tempVec3b$6;
|
|
84209
84209
|
|
|
84210
84210
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$4) : worldRayOrigin); // World -> RTC
|
|
84211
84211
|
rtcRayDir.set(worldRayDir);
|
|
@@ -84338,7 +84338,7 @@ class TrianglesInstancingLayer {
|
|
|
84338
84338
|
}
|
|
84339
84339
|
}
|
|
84340
84340
|
|
|
84341
|
-
const tempVec3a$
|
|
84341
|
+
const tempVec3a$p = math.vec3();
|
|
84342
84342
|
|
|
84343
84343
|
/**
|
|
84344
84344
|
* @private
|
|
@@ -84401,7 +84401,7 @@ class LinesBatchingColorRenderer {
|
|
|
84401
84401
|
if (active) {
|
|
84402
84402
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
84403
84403
|
if (origin) {
|
|
84404
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
84404
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$p);
|
|
84405
84405
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
84406
84406
|
} else {
|
|
84407
84407
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -84621,7 +84621,7 @@ class LinesBatchingColorRenderer {
|
|
|
84621
84621
|
}
|
|
84622
84622
|
|
|
84623
84623
|
const defaultColor$1 = new Float32Array([1, 1, 1]);
|
|
84624
|
-
const tempVec3a$
|
|
84624
|
+
const tempVec3a$o = math.vec3();
|
|
84625
84625
|
|
|
84626
84626
|
/**
|
|
84627
84627
|
* @private
|
|
@@ -84708,7 +84708,7 @@ class LinesBatchingSilhouetteRenderer {
|
|
|
84708
84708
|
if (active) {
|
|
84709
84709
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
84710
84710
|
if (origin) {
|
|
84711
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
84711
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
|
|
84712
84712
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
84713
84713
|
} else {
|
|
84714
84714
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -85805,7 +85805,7 @@ class LinesBatchingLayer {
|
|
|
85805
85805
|
}
|
|
85806
85806
|
}
|
|
85807
85807
|
|
|
85808
|
-
const tempVec3a$
|
|
85808
|
+
const tempVec3a$n = math.vec3();
|
|
85809
85809
|
|
|
85810
85810
|
/**
|
|
85811
85811
|
* @private
|
|
@@ -85868,7 +85868,7 @@ class LinesInstancingColorRenderer {
|
|
|
85868
85868
|
if (active) {
|
|
85869
85869
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
85870
85870
|
if (origin) {
|
|
85871
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
85871
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
|
|
85872
85872
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
85873
85873
|
} else {
|
|
85874
85874
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -86150,7 +86150,7 @@ class LinesInstancingColorRenderer {
|
|
|
86150
86150
|
}
|
|
86151
86151
|
}
|
|
86152
86152
|
|
|
86153
|
-
const tempVec3a$
|
|
86153
|
+
const tempVec3a$m = math.vec3();
|
|
86154
86154
|
|
|
86155
86155
|
/**
|
|
86156
86156
|
* @private
|
|
@@ -86235,7 +86235,7 @@ class LinesInstancingSilhouetteRenderer {
|
|
|
86235
86235
|
if (active) {
|
|
86236
86236
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
86237
86237
|
if (origin) {
|
|
86238
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
86238
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
|
|
86239
86239
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
86240
86240
|
} else {
|
|
86241
86241
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87217,7 +87217,7 @@ class LinesInstancingLayer {
|
|
|
87217
87217
|
}
|
|
87218
87218
|
}
|
|
87219
87219
|
|
|
87220
|
-
const tempVec3a$
|
|
87220
|
+
const tempVec3a$l = math.vec3();
|
|
87221
87221
|
|
|
87222
87222
|
/**
|
|
87223
87223
|
* @private
|
|
@@ -87278,7 +87278,7 @@ class PointsBatchingColorRenderer {
|
|
|
87278
87278
|
if (active) {
|
|
87279
87279
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87280
87280
|
if (origin) {
|
|
87281
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87281
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
|
|
87282
87282
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87283
87283
|
} else {
|
|
87284
87284
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87563,7 +87563,7 @@ class PointsBatchingColorRenderer {
|
|
|
87563
87563
|
}
|
|
87564
87564
|
|
|
87565
87565
|
const defaultColor = new Float32Array([1, 1, 1]);
|
|
87566
|
-
const tempVec3a$
|
|
87566
|
+
const tempVec3a$k = math.vec3();
|
|
87567
87567
|
|
|
87568
87568
|
/**
|
|
87569
87569
|
* @private
|
|
@@ -87648,7 +87648,7 @@ class PointsBatchingSilhouetteRenderer {
|
|
|
87648
87648
|
if (active) {
|
|
87649
87649
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87650
87650
|
if (origin) {
|
|
87651
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87651
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
|
|
87652
87652
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87653
87653
|
} else {
|
|
87654
87654
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87892,7 +87892,7 @@ class PointsBatchingSilhouetteRenderer {
|
|
|
87892
87892
|
}
|
|
87893
87893
|
}
|
|
87894
87894
|
|
|
87895
|
-
const tempVec3a$
|
|
87895
|
+
const tempVec3a$j = math.vec3();
|
|
87896
87896
|
|
|
87897
87897
|
/**
|
|
87898
87898
|
* @private
|
|
@@ -87959,7 +87959,7 @@ class PointsBatchingPickMeshRenderer {
|
|
|
87959
87959
|
if (active) {
|
|
87960
87960
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87961
87961
|
if (origin) {
|
|
87962
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87962
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
|
|
87963
87963
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87964
87964
|
} else {
|
|
87965
87965
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88204,7 +88204,7 @@ class PointsBatchingPickMeshRenderer {
|
|
|
88204
88204
|
}
|
|
88205
88205
|
}
|
|
88206
88206
|
|
|
88207
|
-
const tempVec3a$
|
|
88207
|
+
const tempVec3a$i = math.vec3();
|
|
88208
88208
|
|
|
88209
88209
|
/**
|
|
88210
88210
|
* @private
|
|
@@ -88276,7 +88276,7 @@ class PointsBatchingPickDepthRenderer {
|
|
|
88276
88276
|
if (active) {
|
|
88277
88277
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
88278
88278
|
if (origin) {
|
|
88279
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
88279
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
|
|
88280
88280
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
88281
88281
|
} else {
|
|
88282
88282
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88527,7 +88527,7 @@ class PointsBatchingPickDepthRenderer {
|
|
|
88527
88527
|
}
|
|
88528
88528
|
}
|
|
88529
88529
|
|
|
88530
|
-
const tempVec3a$
|
|
88530
|
+
const tempVec3a$h = math.vec3();
|
|
88531
88531
|
|
|
88532
88532
|
/**
|
|
88533
88533
|
* @private
|
|
@@ -88588,7 +88588,7 @@ class PointsBatchingOcclusionRenderer {
|
|
|
88588
88588
|
if (active) {
|
|
88589
88589
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
88590
88590
|
if (origin) {
|
|
88591
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
88591
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
|
|
88592
88592
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
88593
88593
|
} else {
|
|
88594
88594
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88954,8 +88954,8 @@ class PointsBatchingBuffer {
|
|
|
88954
88954
|
}
|
|
88955
88955
|
}
|
|
88956
88956
|
|
|
88957
|
-
const tempVec3a$
|
|
88958
|
-
const tempVec3b$
|
|
88957
|
+
const tempVec3a$g = math.vec4();
|
|
88958
|
+
const tempVec3b$5 = math.vec4();
|
|
88959
88959
|
const tempVec4a$6 = math.vec4([0, 0, 0, 1]);
|
|
88960
88960
|
const tempVec4b$6 = math.vec4([0, 0, 0, 1]);
|
|
88961
88961
|
const tempVec4c$3 = math.vec4([0, 0, 0, 1]);
|
|
@@ -89107,8 +89107,8 @@ class PointsBatchingLayer {
|
|
|
89107
89107
|
|
|
89108
89108
|
const bounds = geometryCompressionUtils.getPositionsBounds(positionsCompressed);
|
|
89109
89109
|
|
|
89110
|
-
const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$
|
|
89111
|
-
const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$
|
|
89110
|
+
const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$g);
|
|
89111
|
+
const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$5);
|
|
89112
89112
|
|
|
89113
89113
|
worldAABB[0] = min[0];
|
|
89114
89114
|
worldAABB[1] = min[1];
|
|
@@ -89746,7 +89746,7 @@ class PointsBatchingLayer {
|
|
|
89746
89746
|
}
|
|
89747
89747
|
}
|
|
89748
89748
|
|
|
89749
|
-
const tempVec3a$
|
|
89749
|
+
const tempVec3a$f = math.vec3();
|
|
89750
89750
|
|
|
89751
89751
|
/**
|
|
89752
89752
|
* @private
|
|
@@ -89815,7 +89815,7 @@ class PointsInstancingColorRenderer {
|
|
|
89815
89815
|
if (active) {
|
|
89816
89816
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
89817
89817
|
if (origin) {
|
|
89818
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
89818
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$f);
|
|
89819
89819
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
89820
89820
|
} else {
|
|
89821
89821
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90125,7 +90125,7 @@ class PointsInstancingColorRenderer {
|
|
|
90125
90125
|
}
|
|
90126
90126
|
}
|
|
90127
90127
|
|
|
90128
|
-
const tempVec3a$
|
|
90128
|
+
const tempVec3a$e = math.vec3();
|
|
90129
90129
|
|
|
90130
90130
|
/**
|
|
90131
90131
|
* @private
|
|
@@ -90209,7 +90209,7 @@ class PointsInstancingSilhouetteRenderer {
|
|
|
90209
90209
|
if (active) {
|
|
90210
90210
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90211
90211
|
if (origin) {
|
|
90212
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90212
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
|
|
90213
90213
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90214
90214
|
} else {
|
|
90215
90215
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90490,7 +90490,7 @@ class PointsInstancingSilhouetteRenderer {
|
|
|
90490
90490
|
}
|
|
90491
90491
|
}
|
|
90492
90492
|
|
|
90493
|
-
const tempVec3a$
|
|
90493
|
+
const tempVec3a$d = math.vec3();
|
|
90494
90494
|
|
|
90495
90495
|
/**
|
|
90496
90496
|
* @private
|
|
@@ -90596,7 +90596,7 @@ class PointsInstancingPickMeshRenderer {
|
|
|
90596
90596
|
if (active) {
|
|
90597
90597
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90598
90598
|
if (origin) {
|
|
90599
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90599
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
|
|
90600
90600
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90601
90601
|
} else {
|
|
90602
90602
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90847,7 +90847,7 @@ class PointsInstancingPickMeshRenderer {
|
|
|
90847
90847
|
}
|
|
90848
90848
|
}
|
|
90849
90849
|
|
|
90850
|
-
const tempVec3a$
|
|
90850
|
+
const tempVec3a$c = math.vec3();
|
|
90851
90851
|
|
|
90852
90852
|
/**
|
|
90853
90853
|
* @private
|
|
@@ -90925,7 +90925,7 @@ class PointsInstancingPickDepthRenderer {
|
|
|
90925
90925
|
if (active) {
|
|
90926
90926
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90927
90927
|
if (origin) {
|
|
90928
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90928
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
|
|
90929
90929
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90930
90930
|
} else {
|
|
90931
90931
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91213,7 +91213,7 @@ class PointsInstancingPickDepthRenderer {
|
|
|
91213
91213
|
}
|
|
91214
91214
|
}
|
|
91215
91215
|
|
|
91216
|
-
const tempVec3a$
|
|
91216
|
+
const tempVec3a$b = math.vec3();
|
|
91217
91217
|
|
|
91218
91218
|
/**
|
|
91219
91219
|
* @private
|
|
@@ -91275,7 +91275,7 @@ class PointsInstancingOcclusionRenderer {
|
|
|
91275
91275
|
if (active) {
|
|
91276
91276
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91277
91277
|
if (origin) {
|
|
91278
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
91278
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
|
|
91279
91279
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
91280
91280
|
} else {
|
|
91281
91281
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91564,7 +91564,7 @@ class PointsInstancingOcclusionRenderer {
|
|
|
91564
91564
|
}
|
|
91565
91565
|
}
|
|
91566
91566
|
|
|
91567
|
-
const tempVec3a$
|
|
91567
|
+
const tempVec3a$a = math.vec3();
|
|
91568
91568
|
|
|
91569
91569
|
/**
|
|
91570
91570
|
* @private
|
|
@@ -91626,7 +91626,7 @@ class PointsInstancingDepthRenderer {
|
|
|
91626
91626
|
if (active) {
|
|
91627
91627
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91628
91628
|
if (origin) {
|
|
91629
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
91629
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
|
|
91630
91630
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
91631
91631
|
} else {
|
|
91632
91632
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91910,7 +91910,7 @@ class PointsInstancingDepthRenderer {
|
|
|
91910
91910
|
}
|
|
91911
91911
|
}
|
|
91912
91912
|
|
|
91913
|
-
const tempVec3a$
|
|
91913
|
+
const tempVec3a$9 = math.vec3();
|
|
91914
91914
|
|
|
91915
91915
|
/**
|
|
91916
91916
|
* Renders InstancingLayer fragment depths to a shadow map.
|
|
@@ -91997,7 +91997,7 @@ class PointsInstancingShadowRenderer {
|
|
|
91997
91997
|
if (active) {
|
|
91998
91998
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91999
91999
|
if (origin) {
|
|
92000
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
92000
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
|
|
92001
92001
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
92002
92002
|
} else {
|
|
92003
92003
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -94338,7 +94338,7 @@ function getKTX2TextureTranscoder(viewer) {
|
|
|
94338
94338
|
return transcoder;
|
|
94339
94339
|
}
|
|
94340
94340
|
|
|
94341
|
-
const tempVec3a$
|
|
94341
|
+
const tempVec3a$8 = math.vec3();
|
|
94342
94342
|
const tempMat4$1 = math.mat4();
|
|
94343
94343
|
|
|
94344
94344
|
const defaultScale = math.vec3([1, 1, 1]);
|
|
@@ -96719,7 +96719,7 @@ class VBOSceneModel extends Component {
|
|
|
96719
96719
|
}
|
|
96720
96720
|
|
|
96721
96721
|
const cfgOrigin = cfg.origin || cfg.rtcCenter;
|
|
96722
|
-
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
96722
|
+
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$8) : this._origin;
|
|
96723
96723
|
|
|
96724
96724
|
const instancingLayer = this._getInstancingLayer(origin, textureSetId, geometryId);
|
|
96725
96725
|
|
|
@@ -96781,7 +96781,7 @@ class VBOSceneModel extends Component {
|
|
|
96781
96781
|
|
|
96782
96782
|
let indices = cfg.indices;
|
|
96783
96783
|
let edgeIndices = cfg.edgeIndices;
|
|
96784
|
-
let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$
|
|
96784
|
+
let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$8) : this._origin;
|
|
96785
96785
|
let positions = cfg.positions;
|
|
96786
96786
|
|
|
96787
96787
|
if (positions) {
|
|
@@ -97795,8 +97795,8 @@ class TextureTranscoder {
|
|
|
97795
97795
|
const screenPos = math.vec4();
|
|
97796
97796
|
const viewPos = math.vec4();
|
|
97797
97797
|
|
|
97798
|
-
const tempVec3a$
|
|
97799
|
-
const tempVec3b$
|
|
97798
|
+
const tempVec3a$7 = math.vec3();
|
|
97799
|
+
const tempVec3b$4 = math.vec3();
|
|
97800
97800
|
const tempVec3c$3 = math.vec3();
|
|
97801
97801
|
|
|
97802
97802
|
const tempVec4a$4 = math.vec4();
|
|
@@ -97830,7 +97830,7 @@ class PanController {
|
|
|
97830
97830
|
const camera = this._scene.camera;
|
|
97831
97831
|
|
|
97832
97832
|
if (optionalTargetWorldPos) {
|
|
97833
|
-
const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$
|
|
97833
|
+
const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
|
|
97834
97834
|
const eyeWorldPosDist = math.lenVec3(eyeToWorldPosVec);
|
|
97835
97835
|
dolliedThroughSurface = (eyeWorldPosDist < dollyDelta);
|
|
97836
97836
|
}
|
|
@@ -97854,9 +97854,9 @@ class PanController {
|
|
|
97854
97854
|
// suddenly a lot closer than the point we pivoted about on the surface of the last object
|
|
97855
97855
|
// that we click-drag-pivoted on.
|
|
97856
97856
|
|
|
97857
|
-
const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$
|
|
97857
|
+
const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$7);
|
|
97858
97858
|
const lenEyeTargetVec = math.lenVec3(eyeTargetVec);
|
|
97859
|
-
const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$
|
|
97859
|
+
const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$4)), lenEyeTargetVec);
|
|
97860
97860
|
camera.look = [camera.eye[0] + eyeLookVec[0], camera.eye[1] + eyeLookVec[1], camera.eye[2] + eyeLookVec[2]];
|
|
97861
97861
|
}
|
|
97862
97862
|
|
|
@@ -97873,7 +97873,7 @@ class PanController {
|
|
|
97873
97873
|
|
|
97874
97874
|
const worldPos2 = this._unproject(targetCanvasPos, tempVec4b$4);
|
|
97875
97875
|
const offset = math.subVec3(worldPos2, worldPos1, tempVec4c$1);
|
|
97876
|
-
const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$
|
|
97876
|
+
const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$7)), -dollyDelta, tempVec3b$4);
|
|
97877
97877
|
const moveVec = math.addVec3(offset, eyeLookMoveVec, tempVec3c$3);
|
|
97878
97878
|
|
|
97879
97879
|
camera.eye = [camera.eye[0] - moveVec[0], camera.eye[1] - moveVec[1], camera.eye[2] - moveVec[2]];
|
|
@@ -97901,8 +97901,8 @@ class PanController {
|
|
|
97901
97901
|
}
|
|
97902
97902
|
}
|
|
97903
97903
|
|
|
97904
|
-
const tempVec3a$
|
|
97905
|
-
const tempVec3b$
|
|
97904
|
+
const tempVec3a$6 = math.vec3();
|
|
97905
|
+
const tempVec3b$3 = math.vec3();
|
|
97906
97906
|
const tempVec3c$2 = math.vec3();
|
|
97907
97907
|
|
|
97908
97908
|
const tempVec4a$3 = math.vec4();
|
|
@@ -98034,8 +98034,8 @@ class PivotController {
|
|
|
98034
98034
|
|
|
98035
98035
|
_cameraLookingDownwards() { // Returns true if angle between camera viewing direction and World-space "up" axis is too small
|
|
98036
98036
|
const camera = this._scene.camera;
|
|
98037
|
-
const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$
|
|
98038
|
-
const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$
|
|
98037
|
+
const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6));
|
|
98038
|
+
const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$3);
|
|
98039
98039
|
let rightAxisLen = math.sqLenVec3(rightAxis);
|
|
98040
98040
|
return (rightAxisLen <= 0.0001);
|
|
98041
98041
|
}
|
|
@@ -98075,8 +98075,8 @@ class PivotController {
|
|
|
98075
98075
|
const screenZ = math.dotVec4(D, Pt3) / math.dotVec4(D, Pt4);
|
|
98076
98076
|
const worldPos = tempVec4a$3;
|
|
98077
98077
|
camera.project.unproject(canvasPos, screenZ, tempVec4b$3, tempVec4c, worldPos);
|
|
98078
|
-
const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$
|
|
98079
|
-
const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$
|
|
98078
|
+
const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$6));
|
|
98079
|
+
const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$3), tempVec3c$2);
|
|
98080
98080
|
this.setPivotPos(posOnSphere);
|
|
98081
98081
|
}
|
|
98082
98082
|
|
|
@@ -98707,8 +98707,8 @@ class MousePanRotateDollyHandler {
|
|
|
98707
98707
|
}
|
|
98708
98708
|
|
|
98709
98709
|
const center = math.vec3();
|
|
98710
|
-
const tempVec3a$
|
|
98711
|
-
const tempVec3b$
|
|
98710
|
+
const tempVec3a$5 = math.vec3();
|
|
98711
|
+
const tempVec3b$2 = math.vec3();
|
|
98712
98712
|
const tempVec3c$1 = math.vec3();
|
|
98713
98713
|
const tempVec3d = math.vec3();
|
|
98714
98714
|
|
|
@@ -98762,39 +98762,39 @@ class KeyboardAxisViewHandler {
|
|
|
98762
98762
|
|
|
98763
98763
|
if (axisViewRight) {
|
|
98764
98764
|
|
|
98765
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$
|
|
98765
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98766
98766
|
tempCameraTarget.look.set(center);
|
|
98767
98767
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98768
98768
|
|
|
98769
98769
|
} else if (axisViewBack) {
|
|
98770
98770
|
|
|
98771
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$
|
|
98771
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98772
98772
|
tempCameraTarget.look.set(center);
|
|
98773
98773
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98774
98774
|
|
|
98775
98775
|
} else if (axisViewLeft) {
|
|
98776
98776
|
|
|
98777
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$
|
|
98777
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98778
98778
|
tempCameraTarget.look.set(center);
|
|
98779
98779
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98780
98780
|
|
|
98781
98781
|
} else if (axisViewFront) {
|
|
98782
98782
|
|
|
98783
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$
|
|
98783
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98784
98784
|
tempCameraTarget.look.set(center);
|
|
98785
98785
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98786
98786
|
|
|
98787
98787
|
} else if (axisViewTop) {
|
|
98788
98788
|
|
|
98789
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$
|
|
98789
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98790
98790
|
tempCameraTarget.look.set(center);
|
|
98791
|
-
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$
|
|
98791
|
+
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$2), tempVec3c$1));
|
|
98792
98792
|
|
|
98793
98793
|
} else if (axisViewBottom) {
|
|
98794
98794
|
|
|
98795
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$
|
|
98795
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, -perspectiveDist, tempVec3a$5), tempVec3d));
|
|
98796
98796
|
tempCameraTarget.look.set(center);
|
|
98797
|
-
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$
|
|
98797
|
+
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$2)));
|
|
98798
98798
|
}
|
|
98799
98799
|
|
|
98800
98800
|
if ((!configs.firstPerson) && configs.followPointer) {
|
|
@@ -113310,6 +113310,10 @@ function CubeTextureCanvas(viewer, cfg = {}) {
|
|
|
113310
113310
|
};
|
|
113311
113311
|
}
|
|
113312
113312
|
|
|
113313
|
+
const tempVec3a$4 = math.vec3();
|
|
113314
|
+
const tempVec3b$1 = math.vec3();
|
|
113315
|
+
math.mat4();
|
|
113316
|
+
|
|
113313
113317
|
/**
|
|
113314
113318
|
* {@link Viewer} plugin that lets us look at the entire {@link Scene} from along a chosen axis or diagonal.
|
|
113315
113319
|
*
|
|
@@ -113447,11 +113451,10 @@ class NavCubePlugin extends Plugin {
|
|
|
113447
113451
|
|
|
113448
113452
|
const rotateTrueNorth = (function () {
|
|
113449
113453
|
const trueNorthMatrix = math.mat4();
|
|
113450
|
-
|
|
113451
|
-
return function (dir, vec) {
|
|
113454
|
+
return function (dir, vec, dest) {
|
|
113452
113455
|
math.identityMat4(trueNorthMatrix);
|
|
113453
113456
|
math.rotationMat4v(dir * self._projectNorthOffsetAngle * math.DEGTORAD, [0, 1, 0], trueNorthMatrix);
|
|
113454
|
-
return math.transformVec3(trueNorthMatrix, vec,
|
|
113457
|
+
return math.transformVec3(trueNorthMatrix, vec, dest)
|
|
113455
113458
|
}
|
|
113456
113459
|
}());
|
|
113457
113460
|
|
|
@@ -113467,7 +113470,8 @@ class NavCubePlugin extends Plugin {
|
|
|
113467
113470
|
eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(eye, look, eyeLookVec)), 5);
|
|
113468
113471
|
|
|
113469
113472
|
if (self._isProjectNorth && self._projectNorthOffsetAngle) {
|
|
113470
|
-
eyeLookVec = rotateTrueNorth(-1, eyeLookVec);
|
|
113473
|
+
eyeLookVec = rotateTrueNorth(-1, eyeLookVec, tempVec3a$4);
|
|
113474
|
+
up = rotateTrueNorth(-1, up, tempVec3b$1);
|
|
113471
113475
|
}
|
|
113472
113476
|
|
|
113473
113477
|
if (self._zUp) { // +Z up
|
|
@@ -113675,10 +113679,11 @@ class NavCubePlugin extends Plugin {
|
|
|
113675
113679
|
}
|
|
113676
113680
|
var dir = self._cubeTextureCanvas.getAreaDir(areaId);
|
|
113677
113681
|
if (dir) {
|
|
113682
|
+
var up = self._cubeTextureCanvas.getAreaUp(areaId);
|
|
113678
113683
|
if (self._isProjectNorth && self._projectNorthOffsetAngle) {
|
|
113679
|
-
dir = rotateTrueNorth(+1, dir);
|
|
113684
|
+
dir = rotateTrueNorth(+1, dir, tempVec3a$4);
|
|
113685
|
+
up = rotateTrueNorth(+1, up, tempVec3b$1);
|
|
113680
113686
|
}
|
|
113681
|
-
var up = self._cubeTextureCanvas.getAreaUp(areaId);
|
|
113682
113687
|
flyTo(dir, up, function () {
|
|
113683
113688
|
if (lastAreaId >= 0) {
|
|
113684
113689
|
self._cubeTextureCanvas.setAreaHighlighted(lastAreaId, false);
|