@xeokit/xeokit-sdk 2.4.0-alpha-16 → 2.4.0-alpha-17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xeokit-sdk.cjs.js +220 -236
- package/dist/xeokit-sdk.es.js +220 -236
- package/dist/xeokit-sdk.es5.js +176 -176
- 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 +3 -3
- 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$1h = math.vec3();
|
|
8948
8948
|
|
|
8949
8949
|
/**
|
|
8950
8950
|
* Given a view matrix and a relative-to-center (RTC) coordinate origin, returns a view matrix
|
|
@@ -9024,7 +9024,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
|
|
|
9024
9024
|
*/
|
|
9025
9025
|
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
|
|
9026
9026
|
|
|
9027
|
-
const center = math.getPositionsCenter(worldPositions, tempVec3a$
|
|
9027
|
+
const center = math.getPositionsCenter(worldPositions, tempVec3a$1h);
|
|
9028
9028
|
|
|
9029
9029
|
const rtcCenterX = Math.round(center[0] / cellSize) * cellSize;
|
|
9030
9030
|
const rtcCenterY = Math.round(center[1] / cellSize) * cellSize;
|
|
@@ -9060,7 +9060,7 @@ function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
|
|
|
9060
9060
|
*/
|
|
9061
9061
|
function getPlaneRTCPos(dist, dir, rtcCenter, rtcPlanePos) {
|
|
9062
9062
|
const rtcCenterToPlaneDist = math.dotVec3(dir, rtcCenter) + dist;
|
|
9063
|
-
const dirNormalized = math.normalizeVec3(dir, tempVec3a$
|
|
9063
|
+
const dirNormalized = math.normalizeVec3(dir, tempVec3a$1h);
|
|
9064
9064
|
math.mulVec3Scalar(dirNormalized, -rtcCenterToPlaneDist, rtcPlanePos);
|
|
9065
9065
|
return rtcPlanePos;
|
|
9066
9066
|
}
|
|
@@ -11691,8 +11691,8 @@ class Annotation extends Marker {
|
|
|
11691
11691
|
}
|
|
11692
11692
|
}
|
|
11693
11693
|
|
|
11694
|
-
const tempVec3a$
|
|
11695
|
-
const tempVec3b$
|
|
11694
|
+
const tempVec3a$1g = math.vec3();
|
|
11695
|
+
const tempVec3b$c = math.vec3();
|
|
11696
11696
|
const tempVec3c$9 = math.vec3();
|
|
11697
11697
|
|
|
11698
11698
|
/**
|
|
@@ -12169,8 +12169,8 @@ class AnnotationsPlugin extends Plugin {
|
|
|
12169
12169
|
if (!pickResult.worldPos || !pickResult.worldNormal) {
|
|
12170
12170
|
this.error("Param 'pickResult' does not have both worldPos and worldNormal");
|
|
12171
12171
|
} else {
|
|
12172
|
-
const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$
|
|
12173
|
-
const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$
|
|
12172
|
+
const normalizedWorldNormal = math.normalizeVec3(pickResult.worldNormal, tempVec3a$1g);
|
|
12173
|
+
const offsetVec = math.mulVec3Scalar(normalizedWorldNormal, this._surfaceOffset, tempVec3b$c);
|
|
12174
12174
|
const offsetWorldPos = math.addVec3(pickResult.worldPos, offsetVec, tempVec3c$9);
|
|
12175
12175
|
worldPos = offsetWorldPos;
|
|
12176
12176
|
entity = pickResult.entity;
|
|
@@ -14366,7 +14366,7 @@ const MARKER_COLOR = math.vec3([1.0, 0.0, 0.0]);
|
|
|
14366
14366
|
const POINT_SIZE = 20;
|
|
14367
14367
|
const MARKER_SPRITE_CLIPZ_OFFSET = -0.001; // Amount that we offset sprite clip Z coords to raise them from surfaces
|
|
14368
14368
|
|
|
14369
|
-
const tempVec3a$
|
|
14369
|
+
const tempVec3a$1f = math.vec3();
|
|
14370
14370
|
|
|
14371
14371
|
/**
|
|
14372
14372
|
* Manages occlusion testing. Private member of a Renderer.
|
|
@@ -14703,7 +14703,7 @@ class OcclusionTester {
|
|
|
14703
14703
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
14704
14704
|
if (active) {
|
|
14705
14705
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
14706
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
14706
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1f));
|
|
14707
14707
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
14708
14708
|
}
|
|
14709
14709
|
}
|
|
@@ -18708,7 +18708,7 @@ class CustomProjection extends Component {
|
|
|
18708
18708
|
}
|
|
18709
18709
|
|
|
18710
18710
|
const tempVec3$6 = math.vec3();
|
|
18711
|
-
const tempVec3b$
|
|
18711
|
+
const tempVec3b$b = math.vec3();
|
|
18712
18712
|
const tempVec3c$8 = math.vec3();
|
|
18713
18713
|
const tempVec3d$4 = math.vec3();
|
|
18714
18714
|
const tempVec3e$3 = math.vec3();
|
|
@@ -19018,7 +19018,7 @@ class Camera extends Component {
|
|
|
19018
19018
|
orbitYaw(angleInc) {
|
|
19019
19019
|
let lookEyeVec = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19020
19020
|
math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
|
|
19021
|
-
lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$
|
|
19021
|
+
lookEyeVec = math.transformPoint3(tempMat, lookEyeVec, tempVec3b$b);
|
|
19022
19022
|
this.eye = math.addVec3(this._look, lookEyeVec, tempVec3c$8); // Set eye position as 'look' plus 'eye' vector
|
|
19023
19023
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4); // Rotate 'up' vector
|
|
19024
19024
|
}
|
|
@@ -19036,7 +19036,7 @@ class Camera extends Component {
|
|
|
19036
19036
|
}
|
|
19037
19037
|
}
|
|
19038
19038
|
let eye2 = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19039
|
-
const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$
|
|
19039
|
+
const left = math.cross3Vec3(math.normalizeVec3(eye2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
|
|
19040
19040
|
math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
|
|
19041
19041
|
eye2 = math.transformPoint3(tempMat, eye2, tempVec3d$4);
|
|
19042
19042
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3e$3);
|
|
@@ -19051,7 +19051,7 @@ class Camera extends Component {
|
|
|
19051
19051
|
yaw(angleInc) {
|
|
19052
19052
|
let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
|
|
19053
19053
|
math.rotationMat4v(angleInc * 0.0174532925, this._gimbalLock ? this._worldUp : this._up, tempMat);
|
|
19054
|
-
look2 = math.transformPoint3(tempMat, look2, tempVec3b$
|
|
19054
|
+
look2 = math.transformPoint3(tempMat, look2, tempVec3b$b);
|
|
19055
19055
|
this.look = math.addVec3(look2, this._eye, tempVec3c$8);
|
|
19056
19056
|
if (this._gimbalLock) {
|
|
19057
19057
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3d$4);
|
|
@@ -19071,7 +19071,7 @@ class Camera extends Component {
|
|
|
19071
19071
|
}
|
|
19072
19072
|
}
|
|
19073
19073
|
let look2 = math.subVec3(this._look, this._eye, tempVec3$6);
|
|
19074
|
-
const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$
|
|
19074
|
+
const left = math.cross3Vec3(math.normalizeVec3(look2, tempVec3b$b), math.normalizeVec3(this._up, tempVec3c$8));
|
|
19075
19075
|
math.rotationMat4v(angleInc * 0.0174532925, left, tempMat);
|
|
19076
19076
|
this.up = math.transformPoint3(tempMat, this._up, tempVec3f$3);
|
|
19077
19077
|
look2 = math.transformPoint3(tempMat, look2, tempVec3d$4);
|
|
@@ -19088,7 +19088,7 @@ class Camera extends Component {
|
|
|
19088
19088
|
const vec = [0, 0, 0];
|
|
19089
19089
|
let v;
|
|
19090
19090
|
if (pan[0] !== 0) {
|
|
19091
|
-
const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$
|
|
19091
|
+
const left = math.cross3Vec3(math.normalizeVec3(eye2, []), math.normalizeVec3(this._up, tempVec3b$b));
|
|
19092
19092
|
v = math.mulVec3Scalar(left, pan[0]);
|
|
19093
19093
|
vec[0] += v[0];
|
|
19094
19094
|
vec[1] += v[1];
|
|
@@ -19117,7 +19117,7 @@ class Camera extends Component {
|
|
|
19117
19117
|
*/
|
|
19118
19118
|
zoom(delta) {
|
|
19119
19119
|
const vec = math.subVec3(this._eye, this._look, tempVec3$6);
|
|
19120
|
-
const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$
|
|
19120
|
+
const lenLook = Math.abs(math.lenVec3(vec, tempVec3b$b));
|
|
19121
19121
|
const newLenLook = Math.abs(lenLook + delta);
|
|
19122
19122
|
if (newLenLook < 0.5) {
|
|
19123
19123
|
return;
|
|
@@ -19579,7 +19579,7 @@ class Camera extends Component {
|
|
|
19579
19579
|
}
|
|
19580
19580
|
|
|
19581
19581
|
const tempVec4$9 = math.vec4();
|
|
19582
|
-
const tempVec3a$
|
|
19582
|
+
const tempVec3a$1e = math.vec3();
|
|
19583
19583
|
|
|
19584
19584
|
/**
|
|
19585
19585
|
* @private
|
|
@@ -19666,7 +19666,7 @@ class TrianglesDataTextureColorRenderer {
|
|
|
19666
19666
|
if (active) {
|
|
19667
19667
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
19668
19668
|
if (origin) {
|
|
19669
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
19669
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1e);
|
|
19670
19670
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
19671
19671
|
} else {
|
|
19672
19672
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -20193,7 +20193,7 @@ class TrianglesDataTextureColorRenderer {
|
|
|
20193
20193
|
|
|
20194
20194
|
const defaultColor$6 = new Float32Array([1, 1, 1]);
|
|
20195
20195
|
math.vec4();
|
|
20196
|
-
const tempVec3a$
|
|
20196
|
+
const tempVec3a$1d = math.vec3();
|
|
20197
20197
|
|
|
20198
20198
|
/**
|
|
20199
20199
|
* @private
|
|
@@ -20301,7 +20301,7 @@ class TrianglesDataTextureSilhouetteRenderer {
|
|
|
20301
20301
|
if (active) {
|
|
20302
20302
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
20303
20303
|
if (origin) {
|
|
20304
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
20304
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1d);
|
|
20305
20305
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
20306
20306
|
} else {
|
|
20307
20307
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -20657,7 +20657,7 @@ class TrianglesDataTextureSilhouetteRenderer {
|
|
|
20657
20657
|
}
|
|
20658
20658
|
}
|
|
20659
20659
|
|
|
20660
|
-
const tempVec3a$
|
|
20660
|
+
const tempVec3a$1c = math.vec3();
|
|
20661
20661
|
const defaultColor$5 = new Float32Array([0,0,0,1]);
|
|
20662
20662
|
|
|
20663
20663
|
/**
|
|
@@ -20757,7 +20757,7 @@ class TrianglesDataTextureEdgesRenderer {
|
|
|
20757
20757
|
if (active) {
|
|
20758
20758
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
20759
20759
|
if (origin) {
|
|
20760
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
20760
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1c);
|
|
20761
20761
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
20762
20762
|
} else {
|
|
20763
20763
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21076,7 +21076,7 @@ class TrianglesDataTextureEdgesRenderer {
|
|
|
21076
21076
|
}
|
|
21077
21077
|
}
|
|
21078
21078
|
|
|
21079
|
-
const tempVec3a$
|
|
21079
|
+
const tempVec3a$1b = math.vec3();
|
|
21080
21080
|
|
|
21081
21081
|
/**
|
|
21082
21082
|
* @private
|
|
@@ -21150,7 +21150,7 @@ class TrianglesDataTextureEdgesColorRenderer {
|
|
|
21150
21150
|
if (active) {
|
|
21151
21151
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
21152
21152
|
if (origin) {
|
|
21153
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
21153
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1b);
|
|
21154
21154
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
21155
21155
|
} else {
|
|
21156
21156
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21478,7 +21478,7 @@ class TrianglesDataTextureEdgesColorRenderer {
|
|
|
21478
21478
|
}
|
|
21479
21479
|
}
|
|
21480
21480
|
|
|
21481
|
-
const tempVec3a$
|
|
21481
|
+
const tempVec3a$1a = math.vec3();
|
|
21482
21482
|
|
|
21483
21483
|
/**
|
|
21484
21484
|
* @private
|
|
@@ -21565,7 +21565,7 @@ class TrianglesDataTexturePickMeshRenderer {
|
|
|
21565
21565
|
if (active) {
|
|
21566
21566
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
21567
21567
|
if (origin) {
|
|
21568
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
21568
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$1a);
|
|
21569
21569
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
21570
21570
|
} else {
|
|
21571
21571
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -21921,7 +21921,7 @@ class TrianglesDataTexturePickMeshRenderer {
|
|
|
21921
21921
|
}
|
|
21922
21922
|
}
|
|
21923
21923
|
|
|
21924
|
-
const tempVec3a$
|
|
21924
|
+
const tempVec3a$19 = math.vec3();
|
|
21925
21925
|
|
|
21926
21926
|
/**
|
|
21927
21927
|
* @private
|
|
@@ -22013,7 +22013,7 @@ class TrianglesDataTexturePickDepthRenderer {
|
|
|
22013
22013
|
if (active) {
|
|
22014
22014
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
22015
22015
|
if (origin) {
|
|
22016
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
22016
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$19);
|
|
22017
22017
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
22018
22018
|
} else {
|
|
22019
22019
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -22372,7 +22372,7 @@ class TrianglesDataTexturePickDepthRenderer {
|
|
|
22372
22372
|
}
|
|
22373
22373
|
}
|
|
22374
22374
|
|
|
22375
|
-
const tempVec3a$
|
|
22375
|
+
const tempVec3a$18 = math.vec3();
|
|
22376
22376
|
|
|
22377
22377
|
/**
|
|
22378
22378
|
* @private
|
|
@@ -22464,7 +22464,7 @@ class TrianglesDataTexturePickNormalsRenderer {
|
|
|
22464
22464
|
if (active) {
|
|
22465
22465
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
22466
22466
|
if (origin) {
|
|
22467
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
22467
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$18);
|
|
22468
22468
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
22469
22469
|
} else {
|
|
22470
22470
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23028,7 +23028,7 @@ class TrianglesDataTextureOcclusionRenderer {
|
|
|
23028
23028
|
}
|
|
23029
23029
|
|
|
23030
23030
|
math.vec4();
|
|
23031
|
-
const tempVec3a$
|
|
23031
|
+
const tempVec3a$17 = math.vec3();
|
|
23032
23032
|
|
|
23033
23033
|
/**
|
|
23034
23034
|
* @private
|
|
@@ -23113,7 +23113,7 @@ class TrianglesDataTextureDepthRenderer {
|
|
|
23113
23113
|
if (active) {
|
|
23114
23114
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
23115
23115
|
if (origin) {
|
|
23116
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
23116
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$17);
|
|
23117
23117
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
23118
23118
|
} else {
|
|
23119
23119
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23484,7 +23484,7 @@ class TrianglesDataTextureDepthRenderer {
|
|
|
23484
23484
|
}
|
|
23485
23485
|
}
|
|
23486
23486
|
|
|
23487
|
-
const tempVec3a$
|
|
23487
|
+
const tempVec3a$16 = math.vec3();
|
|
23488
23488
|
|
|
23489
23489
|
/**
|
|
23490
23490
|
* @private
|
|
@@ -23547,7 +23547,7 @@ class TrianglesDataTextureNormalsRenderer {
|
|
|
23547
23547
|
if (active) {
|
|
23548
23548
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
23549
23549
|
if (origin) {
|
|
23550
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
23550
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$16);
|
|
23551
23551
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
23552
23552
|
} else {
|
|
23553
23553
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -23977,7 +23977,7 @@ class TrianglesDataTextureShadowRenderer {
|
|
|
23977
23977
|
}
|
|
23978
23978
|
|
|
23979
23979
|
const tempVec4$8 = math.vec4();
|
|
23980
|
-
const tempVec3a$
|
|
23980
|
+
const tempVec3a$15 = math.vec3();
|
|
23981
23981
|
|
|
23982
23982
|
const TEXTURE_DECODE_FUNCS$2 = {
|
|
23983
23983
|
"linear": "linearToLinear",
|
|
@@ -24048,7 +24048,7 @@ class TrianglesDataTextureColorQualityRenderer {
|
|
|
24048
24048
|
if (active) {
|
|
24049
24049
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
24050
24050
|
if (origin) {
|
|
24051
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
24051
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$15);
|
|
24052
24052
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
24053
24053
|
} else {
|
|
24054
24054
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -24787,7 +24787,7 @@ class TrianglesDataTextureColorQualityRenderer {
|
|
|
24787
24787
|
}
|
|
24788
24788
|
}
|
|
24789
24789
|
|
|
24790
|
-
const tempVec3a$
|
|
24790
|
+
const tempVec3a$14 = math.vec3();
|
|
24791
24791
|
|
|
24792
24792
|
/**
|
|
24793
24793
|
* @private
|
|
@@ -24901,7 +24901,7 @@ class TrianglesDataTexturePickNormalsFlatRenderer {
|
|
|
24901
24901
|
if (active) {
|
|
24902
24902
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
24903
24903
|
if (origin) {
|
|
24904
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
24904
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$14);
|
|
24905
24905
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
24906
24906
|
} else {
|
|
24907
24907
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -27638,8 +27638,8 @@ const tempUint8Array4 = new Uint8Array (4);
|
|
|
27638
27638
|
|
|
27639
27639
|
const tempFloat32Array3 = new Float32Array (3);
|
|
27640
27640
|
|
|
27641
|
-
const tempVec3a$
|
|
27642
|
-
const tempVec3b$
|
|
27641
|
+
const tempVec3a$13 = math.vec3();
|
|
27642
|
+
const tempVec3b$a = math.vec3();
|
|
27643
27643
|
const tempVec3c$7 = math.vec3();
|
|
27644
27644
|
const tempVec3d$3 = math.vec3();
|
|
27645
27645
|
const tempVec3e$2 = math.vec3();
|
|
@@ -29264,8 +29264,8 @@ class TrianglesDataTextureLayer {
|
|
|
29264
29264
|
const origin = state.origin;
|
|
29265
29265
|
const offset = portion.offset;
|
|
29266
29266
|
|
|
29267
|
-
const rtcRayOrigin = tempVec3a$
|
|
29268
|
-
const rtcRayDir = tempVec3b$
|
|
29267
|
+
const rtcRayOrigin = tempVec3a$13;
|
|
29268
|
+
const rtcRayDir = tempVec3b$a;
|
|
29269
29269
|
|
|
29270
29270
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$7) : worldRayOrigin); // World -> RTC
|
|
29271
29271
|
rtcRayDir.set(worldRayDir);
|
|
@@ -32114,7 +32114,7 @@ class ViewFrustumCullingManager {
|
|
|
32114
32114
|
|
|
32115
32115
|
WEBGL_INFO.SUPPORTED_EXTENSIONS["ANGLE_instanced_arrays"];
|
|
32116
32116
|
|
|
32117
|
-
const tempVec3a$
|
|
32117
|
+
const tempVec3a$12 = math.vec3();
|
|
32118
32118
|
const tempMat4$3 = math.mat4();
|
|
32119
32119
|
|
|
32120
32120
|
const defaultScale$1 = math.vec3([1, 1, 1]);
|
|
@@ -33086,7 +33086,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33086
33086
|
}
|
|
33087
33087
|
|
|
33088
33088
|
const cfgOrigin = cfg.origin || cfg.rtcCenter;
|
|
33089
|
-
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
33089
|
+
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$12) : this._origin;
|
|
33090
33090
|
|
|
33091
33091
|
switch (primitive) {
|
|
33092
33092
|
case "triangles":
|
|
@@ -33350,7 +33350,7 @@ class DataTextureSceneModel extends Component {
|
|
|
33350
33350
|
if (!origin) {
|
|
33351
33351
|
origin = cfgOrigin;
|
|
33352
33352
|
} else {
|
|
33353
|
-
origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
33353
|
+
origin = math.addVec3(this._origin, cfgOrigin, tempVec3a$12);
|
|
33354
33354
|
}
|
|
33355
33355
|
} else {
|
|
33356
33356
|
origin = this._origin;
|
|
@@ -35321,8 +35321,11 @@ const Renderer = function (scene, options) {
|
|
|
35321
35321
|
*
|
|
35322
35322
|
* Exit snapshot mode using endSnapshot().
|
|
35323
35323
|
*/
|
|
35324
|
-
this.beginSnapshot = function () {
|
|
35324
|
+
this.beginSnapshot = function (params={}) {
|
|
35325
35325
|
const snapshotBuffer = renderBufferManager.getRenderBuffer("snapshot");
|
|
35326
|
+
if (params.width && params.height) {
|
|
35327
|
+
snapshotBuffer.setSize([params.width, params.height]);
|
|
35328
|
+
}
|
|
35326
35329
|
snapshotBuffer.bind();
|
|
35327
35330
|
snapshotBuffer.clear();
|
|
35328
35331
|
snapshotBound = true;
|
|
@@ -40633,11 +40636,7 @@ class SAO extends Component {
|
|
|
40633
40636
|
|
|
40634
40637
|
super(owner, cfg);
|
|
40635
40638
|
|
|
40636
|
-
|
|
40637
|
-
const isSafari = (ua && ua[1].toLowerCase() === "safari");
|
|
40638
|
-
|
|
40639
|
-
this._supported = (!isSafari) &&
|
|
40640
|
-
WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
|
|
40639
|
+
this._supported = WEBGL_INFO.SUPPORTED_EXTENSIONS["OES_standard_derivatives"]; // For computing normals in SAO fragment shader
|
|
40641
40640
|
|
|
40642
40641
|
this.enabled = cfg.enabled;
|
|
40643
40642
|
this.kernelRadius = cfg.kernelRadius;
|
|
@@ -45979,7 +45978,7 @@ function buildFragmentDraw(mesh) {
|
|
|
45979
45978
|
* @author xeolabs / https://github.com/xeolabs
|
|
45980
45979
|
*/
|
|
45981
45980
|
|
|
45982
|
-
const tempVec3a$
|
|
45981
|
+
const tempVec3a$11 = math.vec3();
|
|
45983
45982
|
|
|
45984
45983
|
const ids$2 = new Map$1({});
|
|
45985
45984
|
|
|
@@ -46078,7 +46077,7 @@ DrawRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
46078
46077
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
46079
46078
|
if (active) {
|
|
46080
46079
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
46081
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
46080
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$11) : sectionPlane.pos);
|
|
46082
46081
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
46083
46082
|
}
|
|
46084
46083
|
}
|
|
@@ -47216,7 +47215,7 @@ function buildFragment$5(mesh) {
|
|
|
47216
47215
|
|
|
47217
47216
|
const ids$1 = new Map$1({});
|
|
47218
47217
|
|
|
47219
|
-
const tempVec3a$
|
|
47218
|
+
const tempVec3a$10 = math.vec3();
|
|
47220
47219
|
|
|
47221
47220
|
/**
|
|
47222
47221
|
* @private
|
|
@@ -47300,7 +47299,7 @@ EmphasisFillRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
|
|
|
47300
47299
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
47301
47300
|
if (active) {
|
|
47302
47301
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
47303
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
47302
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$10) : sectionPlane.pos);
|
|
47304
47303
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
47305
47304
|
}
|
|
47306
47305
|
}
|
|
@@ -47636,7 +47635,7 @@ function buildFragment$4(mesh) {
|
|
|
47636
47635
|
|
|
47637
47636
|
const ids = new Map$1({});
|
|
47638
47637
|
|
|
47639
|
-
const tempVec3a
|
|
47638
|
+
const tempVec3a$$ = math.vec3();
|
|
47640
47639
|
|
|
47641
47640
|
/**
|
|
47642
47641
|
* @private
|
|
@@ -47719,7 +47718,7 @@ EmphasisEdgesRenderer.prototype.drawMesh = function (frameCtx, mesh, mode) {
|
|
|
47719
47718
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
47720
47719
|
if (active) {
|
|
47721
47720
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
47722
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a
|
|
47721
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$$) : sectionPlane.pos);
|
|
47723
47722
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
47724
47723
|
}
|
|
47725
47724
|
}
|
|
@@ -48014,7 +48013,7 @@ function buildFragment$3(mesh) {
|
|
|
48014
48013
|
* @author xeolabs / https://github.com/xeolabs
|
|
48015
48014
|
*/
|
|
48016
48015
|
|
|
48017
|
-
const tempVec3a
|
|
48016
|
+
const tempVec3a$_ = math.vec3();
|
|
48018
48017
|
|
|
48019
48018
|
// No ID, because there is exactly one PickMeshRenderer per scene
|
|
48020
48019
|
|
|
@@ -48098,7 +48097,7 @@ PickMeshRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48098
48097
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48099
48098
|
if (active) {
|
|
48100
48099
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48101
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a
|
|
48100
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$_) : sectionPlane.pos);
|
|
48102
48101
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48103
48102
|
}
|
|
48104
48103
|
}
|
|
@@ -48331,7 +48330,7 @@ function buildFragment$2(mesh) {
|
|
|
48331
48330
|
* @author xeolabs / https://github.com/xeolabs
|
|
48332
48331
|
*/
|
|
48333
48332
|
|
|
48334
|
-
const tempVec3a$
|
|
48333
|
+
const tempVec3a$Z = math.vec3();
|
|
48335
48334
|
|
|
48336
48335
|
/**
|
|
48337
48336
|
* @private
|
|
@@ -48423,7 +48422,7 @@ PickTriangleRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48423
48422
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48424
48423
|
if (active) {
|
|
48425
48424
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48426
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
48425
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Z) : sectionPlane.pos);
|
|
48427
48426
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48428
48427
|
}
|
|
48429
48428
|
}
|
|
@@ -48660,7 +48659,7 @@ function buildFragment$1(mesh) {
|
|
|
48660
48659
|
* @author xeolabs / https://github.com/xeolabs
|
|
48661
48660
|
*/
|
|
48662
48661
|
|
|
48663
|
-
const tempVec3a$
|
|
48662
|
+
const tempVec3a$Y = math.vec3();
|
|
48664
48663
|
|
|
48665
48664
|
// No ID, because there is exactly one PickMeshRenderer per scene
|
|
48666
48665
|
|
|
@@ -48768,7 +48767,7 @@ OcclusionRenderer.prototype.drawMesh = function (frameCtx, mesh) {
|
|
|
48768
48767
|
gl.uniform1i(sectionPlaneUniforms.active, active ? 1 : 0);
|
|
48769
48768
|
if (active) {
|
|
48770
48769
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
48771
|
-
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
48770
|
+
gl.uniform3fv(sectionPlaneUniforms.pos, origin ? getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Y) : sectionPlane.pos);
|
|
48772
48771
|
gl.uniform3fv(sectionPlaneUniforms.dir, sectionPlane.dir);
|
|
48773
48772
|
}
|
|
48774
48773
|
}
|
|
@@ -61370,8 +61369,8 @@ class LineSet extends Component {
|
|
|
61370
61369
|
}
|
|
61371
61370
|
|
|
61372
61371
|
const tempVec3$4 = math.vec3();
|
|
61373
|
-
const tempVec3a$
|
|
61374
|
-
const tempVec3b$
|
|
61372
|
+
const tempVec3a$X = math.vec3();
|
|
61373
|
+
const tempVec3b$9 = math.vec3();
|
|
61375
61374
|
const tempVec3c$6 = math.vec3();
|
|
61376
61375
|
|
|
61377
61376
|
/**
|
|
@@ -62051,8 +62050,8 @@ class BCFViewpointsPlugin extends Plugin {
|
|
|
62051
62050
|
bcfViewpoint.bitmaps.forEach(function (e) {
|
|
62052
62051
|
const bitmap_type = e.bitmap_type || "jpg"; // "jpg" | "png"
|
|
62053
62052
|
const bitmap_data = e.bitmap_data; // base64
|
|
62054
|
-
let location = xyzObjectToArray(e.location, tempVec3a$
|
|
62055
|
-
let normal = xyzObjectToArray(e.normal, tempVec3b$
|
|
62053
|
+
let location = xyzObjectToArray(e.location, tempVec3a$X);
|
|
62054
|
+
let normal = xyzObjectToArray(e.normal, tempVec3b$9);
|
|
62056
62055
|
let up = xyzObjectToArray(e.up, tempVec3c$6);
|
|
62057
62056
|
let height = e.height || 1;
|
|
62058
62057
|
if (!bitmap_type) {
|
|
@@ -63941,7 +63940,7 @@ class SplineCurve extends Curve {
|
|
|
63941
63940
|
}
|
|
63942
63941
|
}
|
|
63943
63942
|
|
|
63944
|
-
const tempVec3a$
|
|
63943
|
+
const tempVec3a$W = math.vec3();
|
|
63945
63944
|
|
|
63946
63945
|
/**
|
|
63947
63946
|
* @desc Defines a sequence of frames along which a {@link CameraPathAnimation} can animate a {@link Camera}.
|
|
@@ -64073,9 +64072,9 @@ class CameraPath extends Component {
|
|
|
64073
64072
|
t = t / (this._frames[this._frames.length - 1].t - this._frames[0].t);
|
|
64074
64073
|
t = t < 0.0 ? 0.0 : (t > 1.0 ? 1.0 : t);
|
|
64075
64074
|
|
|
64076
|
-
camera.eye = this._eyeCurve.getPoint(t, tempVec3a$
|
|
64077
|
-
camera.look = this._lookCurve.getPoint(t, tempVec3a$
|
|
64078
|
-
camera.up = this._upCurve.getPoint(t, tempVec3a$
|
|
64075
|
+
camera.eye = this._eyeCurve.getPoint(t, tempVec3a$W);
|
|
64076
|
+
camera.look = this._lookCurve.getPoint(t, tempVec3a$W);
|
|
64077
|
+
camera.up = this._upCurve.getPoint(t, tempVec3a$W);
|
|
64079
64078
|
}
|
|
64080
64079
|
|
|
64081
64080
|
/**
|
|
@@ -65114,7 +65113,7 @@ CameraPathAnimation.PLAYING = 2;
|
|
|
65114
65113
|
CameraPathAnimation.PLAYING_TO = 3;
|
|
65115
65114
|
|
|
65116
65115
|
const tempVec3$2 = math.vec3();
|
|
65117
|
-
const tempVec3b$
|
|
65116
|
+
const tempVec3b$8 = math.vec3();
|
|
65118
65117
|
math.vec3();
|
|
65119
65118
|
const zeroVec$1 = math.vec3([0, -1, 0]);
|
|
65120
65119
|
const tempQuat = math.vec4([0, 0, 0, 1]);
|
|
@@ -65542,7 +65541,7 @@ class ImagePlane extends Component {
|
|
|
65542
65541
|
const dist = -math.dotVec3(negDir, tempVec3$2);
|
|
65543
65542
|
|
|
65544
65543
|
math.normalizeVec3(negDir);
|
|
65545
|
-
math.mulVec3Scalar(negDir, dist, tempVec3b$
|
|
65544
|
+
math.mulVec3Scalar(negDir, dist, tempVec3b$8);
|
|
65546
65545
|
math.vec3PairToQuaternion(zeroVec$1, dir, tempQuat);
|
|
65547
65546
|
|
|
65548
65547
|
this._node.quaternion = tempQuat;
|
|
@@ -66708,8 +66707,8 @@ class SpriteMarker extends Marker {
|
|
|
66708
66707
|
}
|
|
66709
66708
|
}
|
|
66710
66709
|
|
|
66711
|
-
const tempVec3a$
|
|
66712
|
-
const tempVec3b$
|
|
66710
|
+
const tempVec3a$V = math.vec3();
|
|
66711
|
+
const tempVec3b$7 = math.vec3();
|
|
66713
66712
|
const tempMat4a = math.mat4();
|
|
66714
66713
|
|
|
66715
66714
|
/**
|
|
@@ -66786,8 +66785,8 @@ function frustumIntersectsAABB3(frustum, aabb) {
|
|
|
66786
66785
|
|
|
66787
66786
|
let ret = Frustum.INSIDE;
|
|
66788
66787
|
|
|
66789
|
-
const min = tempVec3a$
|
|
66790
|
-
const max = tempVec3b$
|
|
66788
|
+
const min = tempVec3a$V;
|
|
66789
|
+
const max = tempVec3b$7;
|
|
66791
66790
|
|
|
66792
66791
|
min[0] = aabb[0];
|
|
66793
66792
|
min[1] = aabb[1];
|
|
@@ -69368,7 +69367,7 @@ const RENDER_PASSES = {
|
|
|
69368
69367
|
};
|
|
69369
69368
|
|
|
69370
69369
|
const tempVec4$7 = math.vec4();
|
|
69371
|
-
const tempVec3a$
|
|
69370
|
+
const tempVec3a$U = math.vec3();
|
|
69372
69371
|
|
|
69373
69372
|
/**
|
|
69374
69373
|
* @private
|
|
@@ -69433,7 +69432,7 @@ class TrianglesBatchingColorRenderer {
|
|
|
69433
69432
|
if (active) {
|
|
69434
69433
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
69435
69434
|
if (origin) {
|
|
69436
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
69435
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$U);
|
|
69437
69436
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
69438
69437
|
} else {
|
|
69439
69438
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -69861,7 +69860,7 @@ class TrianglesBatchingColorRenderer {
|
|
|
69861
69860
|
}
|
|
69862
69861
|
|
|
69863
69862
|
const tempVec4$6 = math.vec4();
|
|
69864
|
-
const tempVec3a$
|
|
69863
|
+
const tempVec3a$T = math.vec3();
|
|
69865
69864
|
|
|
69866
69865
|
/**
|
|
69867
69866
|
* @private
|
|
@@ -69923,7 +69922,7 @@ class TrianglesBatchingFlatColorRenderer {
|
|
|
69923
69922
|
if (active) {
|
|
69924
69923
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
69925
69924
|
if (origin) {
|
|
69926
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
69925
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$T);
|
|
69927
69926
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
69928
69927
|
} else {
|
|
69929
69928
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70340,7 +70339,7 @@ class TrianglesBatchingFlatColorRenderer {
|
|
|
70340
70339
|
}
|
|
70341
70340
|
|
|
70342
70341
|
const defaultColor$4 = new Float32Array([1, 1, 1]);
|
|
70343
|
-
const tempVec3a$
|
|
70342
|
+
const tempVec3a$S = math.vec3();
|
|
70344
70343
|
|
|
70345
70344
|
/**
|
|
70346
70345
|
* @private
|
|
@@ -70424,7 +70423,7 @@ class TrianglesBatchingSilhouetteRenderer {
|
|
|
70424
70423
|
if (active) {
|
|
70425
70424
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
70426
70425
|
if (origin) {
|
|
70427
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
70426
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$S);
|
|
70428
70427
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
70429
70428
|
} else {
|
|
70430
70429
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70661,7 +70660,7 @@ class TrianglesBatchingSilhouetteRenderer {
|
|
|
70661
70660
|
}
|
|
70662
70661
|
}
|
|
70663
70662
|
|
|
70664
|
-
const tempVec3a$
|
|
70663
|
+
const tempVec3a$R = math.vec3();
|
|
70665
70664
|
const defaultColor$3 = new Float32Array([0,0,0,1]);
|
|
70666
70665
|
|
|
70667
70666
|
/**
|
|
@@ -70744,7 +70743,7 @@ class TrianglesBatchingEdgesRenderer {
|
|
|
70744
70743
|
if (active) {
|
|
70745
70744
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
70746
70745
|
if (origin) {
|
|
70747
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
70746
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$R);
|
|
70748
70747
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
70749
70748
|
} else {
|
|
70750
70749
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -70972,7 +70971,7 @@ class TrianglesBatchingEdgesRenderer {
|
|
|
70972
70971
|
}
|
|
70973
70972
|
}
|
|
70974
70973
|
|
|
70975
|
-
const tempVec3a$
|
|
70974
|
+
const tempVec3a$Q = math.vec3();
|
|
70976
70975
|
|
|
70977
70976
|
/**
|
|
70978
70977
|
* @private
|
|
@@ -71032,7 +71031,7 @@ class TrianglesBatchingEdgesColorRenderer {
|
|
|
71032
71031
|
if (active) {
|
|
71033
71032
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71034
71033
|
if (origin) {
|
|
71035
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71034
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$Q);
|
|
71036
71035
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71037
71036
|
} else {
|
|
71038
71037
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71260,7 +71259,7 @@ class TrianglesBatchingEdgesColorRenderer {
|
|
|
71260
71259
|
}
|
|
71261
71260
|
}
|
|
71262
71261
|
|
|
71263
|
-
const tempVec3a$
|
|
71262
|
+
const tempVec3a$P = math.vec3();
|
|
71264
71263
|
|
|
71265
71264
|
/**
|
|
71266
71265
|
* @private
|
|
@@ -71326,7 +71325,7 @@ class TrianglesBatchingPickMeshRenderer {
|
|
|
71326
71325
|
if (active) {
|
|
71327
71326
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71328
71327
|
if (origin) {
|
|
71329
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71328
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$P);
|
|
71330
71329
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71331
71330
|
} else {
|
|
71332
71331
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71556,7 +71555,7 @@ class TrianglesBatchingPickMeshRenderer {
|
|
|
71556
71555
|
}
|
|
71557
71556
|
}
|
|
71558
71557
|
|
|
71559
|
-
const tempVec3a$
|
|
71558
|
+
const tempVec3a$O = math.vec3();
|
|
71560
71559
|
|
|
71561
71560
|
/**
|
|
71562
71561
|
* @private
|
|
@@ -71627,7 +71626,7 @@ class TrianglesBatchingPickDepthRenderer {
|
|
|
71627
71626
|
if (active) {
|
|
71628
71627
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71629
71628
|
if (origin) {
|
|
71630
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71629
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$O);
|
|
71631
71630
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71632
71631
|
} else {
|
|
71633
71632
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -71865,7 +71864,7 @@ class TrianglesBatchingPickDepthRenderer {
|
|
|
71865
71864
|
}
|
|
71866
71865
|
}
|
|
71867
71866
|
|
|
71868
|
-
const tempVec3a$
|
|
71867
|
+
const tempVec3a$N = math.vec3();
|
|
71869
71868
|
|
|
71870
71869
|
/**
|
|
71871
71870
|
* @private
|
|
@@ -71933,7 +71932,7 @@ class TrianglesBatchingPickNormalsRenderer {
|
|
|
71933
71932
|
if (active) {
|
|
71934
71933
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
71935
71934
|
if (origin) {
|
|
71936
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
71935
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$N);
|
|
71937
71936
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
71938
71937
|
} else {
|
|
71939
71938
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72158,7 +72157,7 @@ class TrianglesBatchingPickNormalsRenderer {
|
|
|
72158
72157
|
}
|
|
72159
72158
|
}
|
|
72160
72159
|
|
|
72161
|
-
const tempVec3a$
|
|
72160
|
+
const tempVec3a$M = math.vec3();
|
|
72162
72161
|
|
|
72163
72162
|
/**
|
|
72164
72163
|
* @private
|
|
@@ -72218,7 +72217,7 @@ class TrianglesBatchingOcclusionRenderer {
|
|
|
72218
72217
|
if (active) {
|
|
72219
72218
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72220
72219
|
if (origin) {
|
|
72221
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72220
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$M);
|
|
72222
72221
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72223
72222
|
} else {
|
|
72224
72223
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72441,7 +72440,7 @@ class TrianglesBatchingOcclusionRenderer {
|
|
|
72441
72440
|
}
|
|
72442
72441
|
}
|
|
72443
72442
|
|
|
72444
|
-
const tempVec3a$
|
|
72443
|
+
const tempVec3a$L = math.vec3();
|
|
72445
72444
|
|
|
72446
72445
|
/**
|
|
72447
72446
|
* @private
|
|
@@ -72501,7 +72500,7 @@ class TrianglesBatchingDepthRenderer {
|
|
|
72501
72500
|
if (active) {
|
|
72502
72501
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72503
72502
|
if (origin) {
|
|
72504
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72503
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$L);
|
|
72505
72504
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72506
72505
|
} else {
|
|
72507
72506
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -72725,7 +72724,7 @@ class TrianglesBatchingDepthRenderer {
|
|
|
72725
72724
|
}
|
|
72726
72725
|
}
|
|
72727
72726
|
|
|
72728
|
-
const tempVec3a$
|
|
72727
|
+
const tempVec3a$K = math.vec3();
|
|
72729
72728
|
|
|
72730
72729
|
/**
|
|
72731
72730
|
* @private
|
|
@@ -72788,7 +72787,7 @@ class TrianglesBatchingNormalsRenderer {
|
|
|
72788
72787
|
if (active) {
|
|
72789
72788
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
72790
72789
|
if (origin) {
|
|
72791
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
72790
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$K);
|
|
72792
72791
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
72793
72792
|
} else {
|
|
72794
72793
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -73028,7 +73027,7 @@ class TrianglesBatchingNormalsRenderer {
|
|
|
73028
73027
|
}
|
|
73029
73028
|
}
|
|
73030
73029
|
|
|
73031
|
-
const tempVec3a$
|
|
73030
|
+
const tempVec3a$J = math.vec3();
|
|
73032
73031
|
|
|
73033
73032
|
/**
|
|
73034
73033
|
* Renders BatchingLayer fragment depths to a shadow map.
|
|
@@ -73097,7 +73096,7 @@ class TrianglesBatchingShadowRenderer {
|
|
|
73097
73096
|
if (active) {
|
|
73098
73097
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
73099
73098
|
if (origin) {
|
|
73100
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
73099
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$J);
|
|
73101
73100
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
73102
73101
|
} else {
|
|
73103
73102
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -73269,7 +73268,7 @@ class TrianglesBatchingShadowRenderer {
|
|
|
73269
73268
|
}
|
|
73270
73269
|
|
|
73271
73270
|
const tempVec4$5 = math.vec4();
|
|
73272
|
-
const tempVec3a$
|
|
73271
|
+
const tempVec3a$I = math.vec3();
|
|
73273
73272
|
|
|
73274
73273
|
// const TEXTURE_DECODE_FUNCS = {};
|
|
73275
73274
|
// TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
|
|
@@ -73342,7 +73341,7 @@ class TrianglesBatchingPBRRenderer {
|
|
|
73342
73341
|
if (active) {
|
|
73343
73342
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
73344
73343
|
if (origin) {
|
|
73345
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
73344
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$I);
|
|
73346
73345
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
73347
73346
|
} else {
|
|
73348
73347
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -74147,7 +74146,7 @@ class TrianglesBatchingPBRRenderer {
|
|
|
74147
74146
|
}
|
|
74148
74147
|
}
|
|
74149
74148
|
|
|
74150
|
-
const tempVec3a$
|
|
74149
|
+
const tempVec3a$H = math.vec3();
|
|
74151
74150
|
|
|
74152
74151
|
/**
|
|
74153
74152
|
* @private
|
|
@@ -74214,7 +74213,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
|
|
|
74214
74213
|
if (active) {
|
|
74215
74214
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
74216
74215
|
if (origin) {
|
|
74217
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
74216
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$H);
|
|
74218
74217
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
74219
74218
|
} else {
|
|
74220
74219
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -74424,7 +74423,7 @@ class TrianglesBatchingPickNormalsFlatRenderer {
|
|
|
74424
74423
|
}
|
|
74425
74424
|
|
|
74426
74425
|
const tempVec4$4 = math.vec4();
|
|
74427
|
-
const tempVec3a$
|
|
74426
|
+
const tempVec3a$G = math.vec3();
|
|
74428
74427
|
|
|
74429
74428
|
/**
|
|
74430
74429
|
* @private
|
|
@@ -74489,7 +74488,7 @@ class TrianglesBatchingColorTextureRenderer {
|
|
|
74489
74488
|
if (active) {
|
|
74490
74489
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
74491
74490
|
if (origin) {
|
|
74492
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
74491
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$G);
|
|
74493
74492
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
74494
74493
|
} else {
|
|
74495
74494
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -75495,8 +75494,8 @@ const tempVec4b$a = math.vec4([0, 0, 0, 1]);
|
|
|
75495
75494
|
const tempVec4c$7 = math.vec4([0, 0, 0, 1]);
|
|
75496
75495
|
const tempOBB3$2 = math.OBB3();
|
|
75497
75496
|
|
|
75498
|
-
const tempVec3a$
|
|
75499
|
-
const tempVec3b$
|
|
75497
|
+
const tempVec3a$F = math.vec3();
|
|
75498
|
+
const tempVec3b$6 = math.vec3();
|
|
75500
75499
|
const tempVec3c$5 = math.vec3();
|
|
75501
75500
|
const tempVec3d$2 = math.vec3();
|
|
75502
75501
|
const tempVec3e$1 = math.vec3();
|
|
@@ -76675,8 +76674,8 @@ class TrianglesBatchingLayer {
|
|
|
76675
76674
|
const origin = state.origin;
|
|
76676
76675
|
const offset = portion.offset;
|
|
76677
76676
|
|
|
76678
|
-
const rtcRayOrigin = tempVec3a$
|
|
76679
|
-
const rtcRayDir = tempVec3b$
|
|
76677
|
+
const rtcRayOrigin = tempVec3a$F;
|
|
76678
|
+
const rtcRayDir = tempVec3b$6;
|
|
76680
76679
|
|
|
76681
76680
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$5) : worldRayOrigin); // World -> RTC
|
|
76682
76681
|
rtcRayDir.set(worldRayDir);
|
|
@@ -76799,7 +76798,7 @@ class TrianglesBatchingLayer {
|
|
|
76799
76798
|
}
|
|
76800
76799
|
|
|
76801
76800
|
const tempVec4$3 = math.vec4();
|
|
76802
|
-
const tempVec3a$
|
|
76801
|
+
const tempVec3a$E = math.vec3();
|
|
76803
76802
|
|
|
76804
76803
|
/**
|
|
76805
76804
|
* @private
|
|
@@ -76865,7 +76864,7 @@ class TrianglesInstancingColorRenderer {
|
|
|
76865
76864
|
if (active) {
|
|
76866
76865
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
76867
76866
|
if (origin) {
|
|
76868
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
76867
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$E);
|
|
76869
76868
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
76870
76869
|
} else {
|
|
76871
76870
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -77342,7 +77341,7 @@ class TrianglesInstancingColorRenderer {
|
|
|
77342
77341
|
}
|
|
77343
77342
|
|
|
77344
77343
|
const tempVec4$2 = math.vec4();
|
|
77345
|
-
const tempVec3a$
|
|
77344
|
+
const tempVec3a$D = math.vec3();
|
|
77346
77345
|
|
|
77347
77346
|
/**
|
|
77348
77347
|
* @private
|
|
@@ -77404,7 +77403,7 @@ class TrianglesInstancingFlatColorRenderer {
|
|
|
77404
77403
|
if (active) {
|
|
77405
77404
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
77406
77405
|
if (origin) {
|
|
77407
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
77406
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$D);
|
|
77408
77407
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
77409
77408
|
} else {
|
|
77410
77409
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -77851,7 +77850,7 @@ class TrianglesInstancingFlatColorRenderer {
|
|
|
77851
77850
|
}
|
|
77852
77851
|
}
|
|
77853
77852
|
|
|
77854
|
-
const tempVec3a$
|
|
77853
|
+
const tempVec3a$C = math.vec3();
|
|
77855
77854
|
|
|
77856
77855
|
/**
|
|
77857
77856
|
* @private
|
|
@@ -77934,7 +77933,7 @@ class TrianglesInstancingSilhouetteRenderer {
|
|
|
77934
77933
|
if (active) {
|
|
77935
77934
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
77936
77935
|
if (origin) {
|
|
77937
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
77936
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$C);
|
|
77938
77937
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
77939
77938
|
} else {
|
|
77940
77939
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78206,7 +78205,7 @@ class TrianglesInstancingSilhouetteRenderer {
|
|
|
78206
78205
|
}
|
|
78207
78206
|
}
|
|
78208
78207
|
|
|
78209
|
-
const tempVec3a$
|
|
78208
|
+
const tempVec3a$B = math.vec3();
|
|
78210
78209
|
const defaultColor$2 = new Float32Array([0,0,0,1]);
|
|
78211
78210
|
|
|
78212
78211
|
/**
|
|
@@ -78290,7 +78289,7 @@ class TrianglesInstancingEdgesRenderer {
|
|
|
78290
78289
|
if (active) {
|
|
78291
78290
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78292
78291
|
if (origin) {
|
|
78293
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
78292
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$B);
|
|
78294
78293
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78295
78294
|
} else {
|
|
78296
78295
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78551,7 +78550,7 @@ class TrianglesInstancingEdgesRenderer {
|
|
|
78551
78550
|
}
|
|
78552
78551
|
}
|
|
78553
78552
|
|
|
78554
|
-
const tempVec3a$
|
|
78553
|
+
const tempVec3a$A = math.vec3();
|
|
78555
78554
|
|
|
78556
78555
|
/**
|
|
78557
78556
|
* @private
|
|
@@ -78612,7 +78611,7 @@ class TrianglesInstancingEdgesColorRenderer {
|
|
|
78612
78611
|
if (active) {
|
|
78613
78612
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78614
78613
|
if (origin) {
|
|
78615
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
78614
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$A);
|
|
78616
78615
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78617
78616
|
} else {
|
|
78618
78617
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -78878,7 +78877,7 @@ class TrianglesInstancingEdgesColorRenderer {
|
|
|
78878
78877
|
}
|
|
78879
78878
|
}
|
|
78880
78879
|
|
|
78881
|
-
const tempVec3a$
|
|
78880
|
+
const tempVec3a$z = math.vec3();
|
|
78882
78881
|
|
|
78883
78882
|
/**
|
|
78884
78883
|
* @private
|
|
@@ -78981,7 +78980,7 @@ class TrianglesInstancingPickMeshRenderer {
|
|
|
78981
78980
|
if (active) {
|
|
78982
78981
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
78983
78982
|
if (origin) {
|
|
78984
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
78983
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$z);
|
|
78985
78984
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
78986
78985
|
} else {
|
|
78987
78986
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79216,7 +79215,7 @@ class TrianglesInstancingPickMeshRenderer {
|
|
|
79216
79215
|
}
|
|
79217
79216
|
}
|
|
79218
79217
|
|
|
79219
|
-
const tempVec3a$
|
|
79218
|
+
const tempVec3a$y = math.vec3();
|
|
79220
79219
|
|
|
79221
79220
|
/**
|
|
79222
79221
|
* @private
|
|
@@ -79293,7 +79292,7 @@ class TrianglesInstancingPickDepthRenderer {
|
|
|
79293
79292
|
if (active) {
|
|
79294
79293
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79295
79294
|
if (origin) {
|
|
79296
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79295
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$y);
|
|
79297
79296
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79298
79297
|
} else {
|
|
79299
79298
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79561,7 +79560,7 @@ class TrianglesInstancingPickDepthRenderer {
|
|
|
79561
79560
|
}
|
|
79562
79561
|
}
|
|
79563
79562
|
|
|
79564
|
-
const tempVec3a$
|
|
79563
|
+
const tempVec3a$x = math.vec3();
|
|
79565
79564
|
|
|
79566
79565
|
/**
|
|
79567
79566
|
* @private
|
|
@@ -79638,7 +79637,7 @@ class TrianglesInstancingPickNormalsRenderer {
|
|
|
79638
79637
|
if (active) {
|
|
79639
79638
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79640
79639
|
if (origin) {
|
|
79641
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79640
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$x);
|
|
79642
79641
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79643
79642
|
} else {
|
|
79644
79643
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -79915,7 +79914,7 @@ class TrianglesInstancingPickNormalsRenderer {
|
|
|
79915
79914
|
}
|
|
79916
79915
|
}
|
|
79917
79916
|
|
|
79918
|
-
const tempVec3a$
|
|
79917
|
+
const tempVec3a$w = math.vec3();
|
|
79919
79918
|
|
|
79920
79919
|
/**
|
|
79921
79920
|
* @private
|
|
@@ -79976,7 +79975,7 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
79976
79975
|
if (active) {
|
|
79977
79976
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
79978
79977
|
if (origin) {
|
|
79979
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
79978
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$w);
|
|
79980
79979
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
79981
79980
|
} else {
|
|
79982
79981
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80234,7 +80233,7 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
80234
80233
|
}
|
|
80235
80234
|
}
|
|
80236
80235
|
|
|
80237
|
-
const tempVec3a$
|
|
80236
|
+
const tempVec3a$v = math.vec3();
|
|
80238
80237
|
|
|
80239
80238
|
/**
|
|
80240
80239
|
* @private
|
|
@@ -80295,7 +80294,7 @@ class TrianglesInstancingDepthRenderer {
|
|
|
80295
80294
|
if (active) {
|
|
80296
80295
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80297
80296
|
if (origin) {
|
|
80298
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80297
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$v);
|
|
80299
80298
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80300
80299
|
} else {
|
|
80301
80300
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80545,7 +80544,7 @@ class TrianglesInstancingDepthRenderer {
|
|
|
80545
80544
|
}
|
|
80546
80545
|
}
|
|
80547
80546
|
|
|
80548
|
-
const tempVec3a$
|
|
80547
|
+
const tempVec3a$u = math.vec3();
|
|
80549
80548
|
|
|
80550
80549
|
/**
|
|
80551
80550
|
* @private
|
|
@@ -80609,7 +80608,7 @@ class TrianglesInstancingNormalsRenderer {
|
|
|
80609
80608
|
if (active) {
|
|
80610
80609
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80611
80610
|
if (origin) {
|
|
80612
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80611
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$u);
|
|
80613
80612
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80614
80613
|
} else {
|
|
80615
80614
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -80889,7 +80888,7 @@ class TrianglesInstancingNormalsRenderer {
|
|
|
80889
80888
|
}
|
|
80890
80889
|
}
|
|
80891
80890
|
|
|
80892
|
-
const tempVec3a$
|
|
80891
|
+
const tempVec3a$t = math.vec3();
|
|
80893
80892
|
|
|
80894
80893
|
/**
|
|
80895
80894
|
* Renders InstancingLayer fragment depths to a shadow map.
|
|
@@ -80976,7 +80975,7 @@ class TrianglesInstancingShadowRenderer {
|
|
|
80976
80975
|
if (active) {
|
|
80977
80976
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
80978
80977
|
if (origin) {
|
|
80979
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
80978
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$t);
|
|
80980
80979
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
80981
80980
|
} else {
|
|
80982
80981
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -81169,7 +81168,7 @@ class TrianglesInstancingShadowRenderer {
|
|
|
81169
81168
|
}
|
|
81170
81169
|
|
|
81171
81170
|
const tempVec4$1 = math.vec4();
|
|
81172
|
-
const tempVec3a$
|
|
81171
|
+
const tempVec3a$s = math.vec3();
|
|
81173
81172
|
|
|
81174
81173
|
const TEXTURE_DECODE_FUNCS = {};
|
|
81175
81174
|
TEXTURE_DECODE_FUNCS[LinearEncoding] = "linearToLinear";
|
|
@@ -81243,7 +81242,7 @@ class TrianglesInstancingPBRRenderer {
|
|
|
81243
81242
|
if (active) {
|
|
81244
81243
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
81245
81244
|
if (origin) {
|
|
81246
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
81245
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$s);
|
|
81247
81246
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
81248
81247
|
} else {
|
|
81249
81248
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -82079,7 +82078,7 @@ class TrianglesInstancingPBRRenderer {
|
|
|
82079
82078
|
}
|
|
82080
82079
|
}
|
|
82081
82080
|
|
|
82082
|
-
const tempVec3a$
|
|
82081
|
+
const tempVec3a$r = math.vec3();
|
|
82083
82082
|
|
|
82084
82083
|
/**
|
|
82085
82084
|
* @private
|
|
@@ -82154,7 +82153,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
|
|
|
82154
82153
|
if (active) {
|
|
82155
82154
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
82156
82155
|
if (origin) {
|
|
82157
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
82156
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$r);
|
|
82158
82157
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
82159
82158
|
} else {
|
|
82160
82159
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -82394,7 +82393,7 @@ class TrianglesInstancingPickNormalsFlatRenderer {
|
|
|
82394
82393
|
}
|
|
82395
82394
|
|
|
82396
82395
|
const tempVec4 = math.vec4();
|
|
82397
|
-
const tempVec3a$
|
|
82396
|
+
const tempVec3a$q = math.vec3();
|
|
82398
82397
|
|
|
82399
82398
|
/**
|
|
82400
82399
|
* @private
|
|
@@ -82459,7 +82458,7 @@ class TrianglesInstancingColorTextureRenderer {
|
|
|
82459
82458
|
if (active) {
|
|
82460
82459
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
82461
82460
|
if (origin) {
|
|
82462
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
82461
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$q);
|
|
82463
82462
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
82464
82463
|
} else {
|
|
82465
82464
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -83270,8 +83269,8 @@ const tempVec4b$9 = math.vec4([0, 0, 0, 1]);
|
|
|
83270
83269
|
const tempVec4c$6 = math.vec4([0, 0, 0, 1]);
|
|
83271
83270
|
const tempVec3fa$2 = new Float32Array(3);
|
|
83272
83271
|
|
|
83273
|
-
const tempVec3a$
|
|
83274
|
-
const tempVec3b$
|
|
83272
|
+
const tempVec3a$p = math.vec3();
|
|
83273
|
+
const tempVec3b$5 = math.vec3();
|
|
83275
83274
|
const tempVec3c$4 = math.vec3();
|
|
83276
83275
|
const tempVec3d$1 = math.vec3();
|
|
83277
83276
|
const tempVec3e = math.vec3();
|
|
@@ -84199,8 +84198,8 @@ class TrianglesInstancingLayer {
|
|
|
84199
84198
|
const origin = state.origin;
|
|
84200
84199
|
const offset = portion.offset;
|
|
84201
84200
|
|
|
84202
|
-
const rtcRayOrigin = tempVec3a$
|
|
84203
|
-
const rtcRayDir = tempVec3b$
|
|
84201
|
+
const rtcRayOrigin = tempVec3a$p;
|
|
84202
|
+
const rtcRayDir = tempVec3b$5;
|
|
84204
84203
|
|
|
84205
84204
|
rtcRayOrigin.set(origin ? math.subVec3(worldRayOrigin, origin, tempVec3c$4) : worldRayOrigin); // World -> RTC
|
|
84206
84205
|
rtcRayDir.set(worldRayDir);
|
|
@@ -84333,7 +84332,7 @@ class TrianglesInstancingLayer {
|
|
|
84333
84332
|
}
|
|
84334
84333
|
}
|
|
84335
84334
|
|
|
84336
|
-
const tempVec3a$
|
|
84335
|
+
const tempVec3a$o = math.vec3();
|
|
84337
84336
|
|
|
84338
84337
|
/**
|
|
84339
84338
|
* @private
|
|
@@ -84396,7 +84395,7 @@ class LinesBatchingColorRenderer {
|
|
|
84396
84395
|
if (active) {
|
|
84397
84396
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
84398
84397
|
if (origin) {
|
|
84399
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
84398
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$o);
|
|
84400
84399
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
84401
84400
|
} else {
|
|
84402
84401
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -84616,7 +84615,7 @@ class LinesBatchingColorRenderer {
|
|
|
84616
84615
|
}
|
|
84617
84616
|
|
|
84618
84617
|
const defaultColor$1 = new Float32Array([1, 1, 1]);
|
|
84619
|
-
const tempVec3a$
|
|
84618
|
+
const tempVec3a$n = math.vec3();
|
|
84620
84619
|
|
|
84621
84620
|
/**
|
|
84622
84621
|
* @private
|
|
@@ -84703,7 +84702,7 @@ class LinesBatchingSilhouetteRenderer {
|
|
|
84703
84702
|
if (active) {
|
|
84704
84703
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
84705
84704
|
if (origin) {
|
|
84706
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
84705
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$n);
|
|
84707
84706
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
84708
84707
|
} else {
|
|
84709
84708
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -85800,7 +85799,7 @@ class LinesBatchingLayer {
|
|
|
85800
85799
|
}
|
|
85801
85800
|
}
|
|
85802
85801
|
|
|
85803
|
-
const tempVec3a$
|
|
85802
|
+
const tempVec3a$m = math.vec3();
|
|
85804
85803
|
|
|
85805
85804
|
/**
|
|
85806
85805
|
* @private
|
|
@@ -85863,7 +85862,7 @@ class LinesInstancingColorRenderer {
|
|
|
85863
85862
|
if (active) {
|
|
85864
85863
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
85865
85864
|
if (origin) {
|
|
85866
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
85865
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$m);
|
|
85867
85866
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
85868
85867
|
} else {
|
|
85869
85868
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -86145,7 +86144,7 @@ class LinesInstancingColorRenderer {
|
|
|
86145
86144
|
}
|
|
86146
86145
|
}
|
|
86147
86146
|
|
|
86148
|
-
const tempVec3a$
|
|
86147
|
+
const tempVec3a$l = math.vec3();
|
|
86149
86148
|
|
|
86150
86149
|
/**
|
|
86151
86150
|
* @private
|
|
@@ -86230,7 +86229,7 @@ class LinesInstancingSilhouetteRenderer {
|
|
|
86230
86229
|
if (active) {
|
|
86231
86230
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
86232
86231
|
if (origin) {
|
|
86233
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
86232
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$l);
|
|
86234
86233
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
86235
86234
|
} else {
|
|
86236
86235
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87212,7 +87211,7 @@ class LinesInstancingLayer {
|
|
|
87212
87211
|
}
|
|
87213
87212
|
}
|
|
87214
87213
|
|
|
87215
|
-
const tempVec3a$
|
|
87214
|
+
const tempVec3a$k = math.vec3();
|
|
87216
87215
|
|
|
87217
87216
|
/**
|
|
87218
87217
|
* @private
|
|
@@ -87273,7 +87272,7 @@ class PointsBatchingColorRenderer {
|
|
|
87273
87272
|
if (active) {
|
|
87274
87273
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87275
87274
|
if (origin) {
|
|
87276
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87275
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$k);
|
|
87277
87276
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87278
87277
|
} else {
|
|
87279
87278
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87558,7 +87557,7 @@ class PointsBatchingColorRenderer {
|
|
|
87558
87557
|
}
|
|
87559
87558
|
|
|
87560
87559
|
const defaultColor = new Float32Array([1, 1, 1]);
|
|
87561
|
-
const tempVec3a$
|
|
87560
|
+
const tempVec3a$j = math.vec3();
|
|
87562
87561
|
|
|
87563
87562
|
/**
|
|
87564
87563
|
* @private
|
|
@@ -87643,7 +87642,7 @@ class PointsBatchingSilhouetteRenderer {
|
|
|
87643
87642
|
if (active) {
|
|
87644
87643
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87645
87644
|
if (origin) {
|
|
87646
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87645
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$j);
|
|
87647
87646
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87648
87647
|
} else {
|
|
87649
87648
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -87887,7 +87886,7 @@ class PointsBatchingSilhouetteRenderer {
|
|
|
87887
87886
|
}
|
|
87888
87887
|
}
|
|
87889
87888
|
|
|
87890
|
-
const tempVec3a$
|
|
87889
|
+
const tempVec3a$i = math.vec3();
|
|
87891
87890
|
|
|
87892
87891
|
/**
|
|
87893
87892
|
* @private
|
|
@@ -87954,7 +87953,7 @@ class PointsBatchingPickMeshRenderer {
|
|
|
87954
87953
|
if (active) {
|
|
87955
87954
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
87956
87955
|
if (origin) {
|
|
87957
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
87956
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$i);
|
|
87958
87957
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
87959
87958
|
} else {
|
|
87960
87959
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88199,7 +88198,7 @@ class PointsBatchingPickMeshRenderer {
|
|
|
88199
88198
|
}
|
|
88200
88199
|
}
|
|
88201
88200
|
|
|
88202
|
-
const tempVec3a$
|
|
88201
|
+
const tempVec3a$h = math.vec3();
|
|
88203
88202
|
|
|
88204
88203
|
/**
|
|
88205
88204
|
* @private
|
|
@@ -88271,7 +88270,7 @@ class PointsBatchingPickDepthRenderer {
|
|
|
88271
88270
|
if (active) {
|
|
88272
88271
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
88273
88272
|
if (origin) {
|
|
88274
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
88273
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$h);
|
|
88275
88274
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
88276
88275
|
} else {
|
|
88277
88276
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88522,7 +88521,7 @@ class PointsBatchingPickDepthRenderer {
|
|
|
88522
88521
|
}
|
|
88523
88522
|
}
|
|
88524
88523
|
|
|
88525
|
-
const tempVec3a$
|
|
88524
|
+
const tempVec3a$g = math.vec3();
|
|
88526
88525
|
|
|
88527
88526
|
/**
|
|
88528
88527
|
* @private
|
|
@@ -88583,7 +88582,7 @@ class PointsBatchingOcclusionRenderer {
|
|
|
88583
88582
|
if (active) {
|
|
88584
88583
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
88585
88584
|
if (origin) {
|
|
88586
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
88585
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$g);
|
|
88587
88586
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
88588
88587
|
} else {
|
|
88589
88588
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -88949,8 +88948,8 @@ class PointsBatchingBuffer {
|
|
|
88949
88948
|
}
|
|
88950
88949
|
}
|
|
88951
88950
|
|
|
88952
|
-
const tempVec3a$
|
|
88953
|
-
const tempVec3b$
|
|
88951
|
+
const tempVec3a$f = math.vec4();
|
|
88952
|
+
const tempVec3b$4 = math.vec4();
|
|
88954
88953
|
const tempVec4a$6 = math.vec4([0, 0, 0, 1]);
|
|
88955
88954
|
const tempVec4b$6 = math.vec4([0, 0, 0, 1]);
|
|
88956
88955
|
const tempVec4c$3 = math.vec4([0, 0, 0, 1]);
|
|
@@ -89102,8 +89101,8 @@ class PointsBatchingLayer {
|
|
|
89102
89101
|
|
|
89103
89102
|
const bounds = geometryCompressionUtils.getPositionsBounds(positionsCompressed);
|
|
89104
89103
|
|
|
89105
|
-
const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$
|
|
89106
|
-
const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$
|
|
89104
|
+
const min = geometryCompressionUtils.decompressPosition(bounds.min, this._state.positionsDecodeMatrix, tempVec3a$f);
|
|
89105
|
+
const max = geometryCompressionUtils.decompressPosition(bounds.max, this._state.positionsDecodeMatrix, tempVec3b$4);
|
|
89107
89106
|
|
|
89108
89107
|
worldAABB[0] = min[0];
|
|
89109
89108
|
worldAABB[1] = min[1];
|
|
@@ -89741,7 +89740,7 @@ class PointsBatchingLayer {
|
|
|
89741
89740
|
}
|
|
89742
89741
|
}
|
|
89743
89742
|
|
|
89744
|
-
const tempVec3a$
|
|
89743
|
+
const tempVec3a$e = math.vec3();
|
|
89745
89744
|
|
|
89746
89745
|
/**
|
|
89747
89746
|
* @private
|
|
@@ -89810,7 +89809,7 @@ class PointsInstancingColorRenderer {
|
|
|
89810
89809
|
if (active) {
|
|
89811
89810
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
89812
89811
|
if (origin) {
|
|
89813
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
89812
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$e);
|
|
89814
89813
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
89815
89814
|
} else {
|
|
89816
89815
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90120,7 +90119,7 @@ class PointsInstancingColorRenderer {
|
|
|
90120
90119
|
}
|
|
90121
90120
|
}
|
|
90122
90121
|
|
|
90123
|
-
const tempVec3a$
|
|
90122
|
+
const tempVec3a$d = math.vec3();
|
|
90124
90123
|
|
|
90125
90124
|
/**
|
|
90126
90125
|
* @private
|
|
@@ -90204,7 +90203,7 @@ class PointsInstancingSilhouetteRenderer {
|
|
|
90204
90203
|
if (active) {
|
|
90205
90204
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90206
90205
|
if (origin) {
|
|
90207
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90206
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$d);
|
|
90208
90207
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90209
90208
|
} else {
|
|
90210
90209
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90485,7 +90484,7 @@ class PointsInstancingSilhouetteRenderer {
|
|
|
90485
90484
|
}
|
|
90486
90485
|
}
|
|
90487
90486
|
|
|
90488
|
-
const tempVec3a$
|
|
90487
|
+
const tempVec3a$c = math.vec3();
|
|
90489
90488
|
|
|
90490
90489
|
/**
|
|
90491
90490
|
* @private
|
|
@@ -90591,7 +90590,7 @@ class PointsInstancingPickMeshRenderer {
|
|
|
90591
90590
|
if (active) {
|
|
90592
90591
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90593
90592
|
if (origin) {
|
|
90594
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90593
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$c);
|
|
90595
90594
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90596
90595
|
} else {
|
|
90597
90596
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -90842,7 +90841,7 @@ class PointsInstancingPickMeshRenderer {
|
|
|
90842
90841
|
}
|
|
90843
90842
|
}
|
|
90844
90843
|
|
|
90845
|
-
const tempVec3a$
|
|
90844
|
+
const tempVec3a$b = math.vec3();
|
|
90846
90845
|
|
|
90847
90846
|
/**
|
|
90848
90847
|
* @private
|
|
@@ -90920,7 +90919,7 @@ class PointsInstancingPickDepthRenderer {
|
|
|
90920
90919
|
if (active) {
|
|
90921
90920
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
90922
90921
|
if (origin) {
|
|
90923
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
90922
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$b);
|
|
90924
90923
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
90925
90924
|
} else {
|
|
90926
90925
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91208,7 +91207,7 @@ class PointsInstancingPickDepthRenderer {
|
|
|
91208
91207
|
}
|
|
91209
91208
|
}
|
|
91210
91209
|
|
|
91211
|
-
const tempVec3a$
|
|
91210
|
+
const tempVec3a$a = math.vec3();
|
|
91212
91211
|
|
|
91213
91212
|
/**
|
|
91214
91213
|
* @private
|
|
@@ -91270,7 +91269,7 @@ class PointsInstancingOcclusionRenderer {
|
|
|
91270
91269
|
if (active) {
|
|
91271
91270
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91272
91271
|
if (origin) {
|
|
91273
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
91272
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$a);
|
|
91274
91273
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
91275
91274
|
} else {
|
|
91276
91275
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91559,7 +91558,7 @@ class PointsInstancingOcclusionRenderer {
|
|
|
91559
91558
|
}
|
|
91560
91559
|
}
|
|
91561
91560
|
|
|
91562
|
-
const tempVec3a$
|
|
91561
|
+
const tempVec3a$9 = math.vec3();
|
|
91563
91562
|
|
|
91564
91563
|
/**
|
|
91565
91564
|
* @private
|
|
@@ -91621,7 +91620,7 @@ class PointsInstancingDepthRenderer {
|
|
|
91621
91620
|
if (active) {
|
|
91622
91621
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91623
91622
|
if (origin) {
|
|
91624
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
91623
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$9);
|
|
91625
91624
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
91626
91625
|
} else {
|
|
91627
91626
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -91905,7 +91904,7 @@ class PointsInstancingDepthRenderer {
|
|
|
91905
91904
|
}
|
|
91906
91905
|
}
|
|
91907
91906
|
|
|
91908
|
-
const tempVec3a$
|
|
91907
|
+
const tempVec3a$8 = math.vec3();
|
|
91909
91908
|
|
|
91910
91909
|
/**
|
|
91911
91910
|
* Renders InstancingLayer fragment depths to a shadow map.
|
|
@@ -91992,7 +91991,7 @@ class PointsInstancingShadowRenderer {
|
|
|
91992
91991
|
if (active) {
|
|
91993
91992
|
const sectionPlane = sectionPlanes[sectionPlaneIndex];
|
|
91994
91993
|
if (origin) {
|
|
91995
|
-
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$
|
|
91994
|
+
const rtcSectionPlanePos = getPlaneRTCPos(sectionPlane.dist, sectionPlane.dir, origin, tempVec3a$8);
|
|
91996
91995
|
gl.uniform3fv(sectionPlaneUniforms.pos, rtcSectionPlanePos);
|
|
91997
91996
|
} else {
|
|
91998
91997
|
gl.uniform3fv(sectionPlaneUniforms.pos, sectionPlane.pos);
|
|
@@ -94333,7 +94332,7 @@ function getKTX2TextureTranscoder(viewer) {
|
|
|
94333
94332
|
return transcoder;
|
|
94334
94333
|
}
|
|
94335
94334
|
|
|
94336
|
-
const tempVec3a$
|
|
94335
|
+
const tempVec3a$7 = math.vec3();
|
|
94337
94336
|
const tempMat4$1 = math.mat4();
|
|
94338
94337
|
|
|
94339
94338
|
const defaultScale = math.vec3([1, 1, 1]);
|
|
@@ -96714,7 +96713,7 @@ class VBOSceneModel extends Component {
|
|
|
96714
96713
|
}
|
|
96715
96714
|
|
|
96716
96715
|
const cfgOrigin = cfg.origin || cfg.rtcCenter;
|
|
96717
|
-
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$
|
|
96716
|
+
const origin = (cfgOrigin) ? math.addVec3(this._origin, cfgOrigin, tempVec3a$7) : this._origin;
|
|
96718
96717
|
|
|
96719
96718
|
const instancingLayer = this._getInstancingLayer(origin, textureSetId, geometryId);
|
|
96720
96719
|
|
|
@@ -96776,7 +96775,7 @@ class VBOSceneModel extends Component {
|
|
|
96776
96775
|
|
|
96777
96776
|
let indices = cfg.indices;
|
|
96778
96777
|
let edgeIndices = cfg.edgeIndices;
|
|
96779
|
-
let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$
|
|
96778
|
+
let origin = (cfg.origin || cfg.rtcCenter) ? math.addVec3(this._origin, cfg.origin || cfg.rtcCenter, tempVec3a$7) : this._origin;
|
|
96780
96779
|
let positions = cfg.positions;
|
|
96781
96780
|
|
|
96782
96781
|
if (positions) {
|
|
@@ -97790,8 +97789,8 @@ class TextureTranscoder {
|
|
|
97790
97789
|
const screenPos = math.vec4();
|
|
97791
97790
|
const viewPos = math.vec4();
|
|
97792
97791
|
|
|
97793
|
-
const tempVec3a$
|
|
97794
|
-
const tempVec3b$
|
|
97792
|
+
const tempVec3a$6 = math.vec3();
|
|
97793
|
+
const tempVec3b$3 = math.vec3();
|
|
97795
97794
|
const tempVec3c$3 = math.vec3();
|
|
97796
97795
|
|
|
97797
97796
|
const tempVec4a$4 = math.vec4();
|
|
@@ -97825,7 +97824,7 @@ class PanController {
|
|
|
97825
97824
|
const camera = this._scene.camera;
|
|
97826
97825
|
|
|
97827
97826
|
if (optionalTargetWorldPos) {
|
|
97828
|
-
const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$
|
|
97827
|
+
const eyeToWorldPosVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
|
|
97829
97828
|
const eyeWorldPosDist = math.lenVec3(eyeToWorldPosVec);
|
|
97830
97829
|
dolliedThroughSurface = (eyeWorldPosDist < dollyDelta);
|
|
97831
97830
|
}
|
|
@@ -97849,9 +97848,9 @@ class PanController {
|
|
|
97849
97848
|
// suddenly a lot closer than the point we pivoted about on the surface of the last object
|
|
97850
97849
|
// that we click-drag-pivoted on.
|
|
97851
97850
|
|
|
97852
|
-
const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$
|
|
97851
|
+
const eyeTargetVec = math.subVec3(optionalTargetWorldPos, camera.eye, tempVec3a$6);
|
|
97853
97852
|
const lenEyeTargetVec = math.lenVec3(eyeTargetVec);
|
|
97854
|
-
const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$
|
|
97853
|
+
const eyeLookVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3b$3)), lenEyeTargetVec);
|
|
97855
97854
|
camera.look = [camera.eye[0] + eyeLookVec[0], camera.eye[1] + eyeLookVec[1], camera.eye[2] + eyeLookVec[2]];
|
|
97856
97855
|
}
|
|
97857
97856
|
|
|
@@ -97868,7 +97867,7 @@ class PanController {
|
|
|
97868
97867
|
|
|
97869
97868
|
const worldPos2 = this._unproject(targetCanvasPos, tempVec4b$4);
|
|
97870
97869
|
const offset = math.subVec3(worldPos2, worldPos1, tempVec4c$1);
|
|
97871
|
-
const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$
|
|
97870
|
+
const eyeLookMoveVec = math.mulVec3Scalar(math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$6)), -dollyDelta, tempVec3b$3);
|
|
97872
97871
|
const moveVec = math.addVec3(offset, eyeLookMoveVec, tempVec3c$3);
|
|
97873
97872
|
|
|
97874
97873
|
camera.eye = [camera.eye[0] - moveVec[0], camera.eye[1] - moveVec[1], camera.eye[2] - moveVec[2]];
|
|
@@ -97896,8 +97895,8 @@ class PanController {
|
|
|
97896
97895
|
}
|
|
97897
97896
|
}
|
|
97898
97897
|
|
|
97899
|
-
const tempVec3a$
|
|
97900
|
-
const tempVec3b$
|
|
97898
|
+
const tempVec3a$5 = math.vec3();
|
|
97899
|
+
const tempVec3b$2 = math.vec3();
|
|
97901
97900
|
const tempVec3c$2 = math.vec3();
|
|
97902
97901
|
|
|
97903
97902
|
const tempVec4a$3 = math.vec4();
|
|
@@ -98029,10 +98028,10 @@ class PivotController {
|
|
|
98029
98028
|
|
|
98030
98029
|
_cameraLookingDownwards() { // Returns true if angle between camera viewing direction and World-space "up" axis is too small
|
|
98031
98030
|
const camera = this._scene.camera;
|
|
98032
|
-
const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$
|
|
98033
|
-
const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$
|
|
98031
|
+
const forwardAxis = math.normalizeVec3(math.subVec3(camera.look, camera.eye, tempVec3a$5));
|
|
98032
|
+
const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$2);
|
|
98034
98033
|
let rightAxisLen = math.sqLenVec3(rightAxis);
|
|
98035
|
-
return (
|
|
98034
|
+
return (rightAxisLen <= 0.0001);
|
|
98036
98035
|
}
|
|
98037
98036
|
|
|
98038
98037
|
/**
|
|
@@ -98070,8 +98069,8 @@ class PivotController {
|
|
|
98070
98069
|
const screenZ = math.dotVec4(D, Pt3) / math.dotVec4(D, Pt4);
|
|
98071
98070
|
const worldPos = tempVec4a$3;
|
|
98072
98071
|
camera.project.unproject(canvasPos, screenZ, tempVec4b$3, tempVec4c, worldPos);
|
|
98073
|
-
const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$
|
|
98074
|
-
const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$
|
|
98072
|
+
const eyeWorldPosVec = math.normalizeVec3(math.subVec3(worldPos, camera.eye, tempVec3a$5));
|
|
98073
|
+
const posOnSphere = math.addVec3(camera.eye, math.mulVec3Scalar(eyeWorldPosVec, pivotShereRadius, tempVec3b$2), tempVec3c$2);
|
|
98075
98074
|
this.setPivotPos(posOnSphere);
|
|
98076
98075
|
}
|
|
98077
98076
|
|
|
@@ -98093,10 +98092,6 @@ class PivotController {
|
|
|
98093
98092
|
if (!this._pivoting) {
|
|
98094
98093
|
return;
|
|
98095
98094
|
}
|
|
98096
|
-
if (this._cameraLookingDownwards()) {
|
|
98097
|
-
this._pivoting = false;
|
|
98098
|
-
return;
|
|
98099
|
-
}
|
|
98100
98095
|
if (yawInc === 0 && pitchInc === 0) {
|
|
98101
98096
|
return;
|
|
98102
98097
|
}
|
|
@@ -98706,8 +98701,8 @@ class MousePanRotateDollyHandler {
|
|
|
98706
98701
|
}
|
|
98707
98702
|
|
|
98708
98703
|
const center = math.vec3();
|
|
98709
|
-
const tempVec3a$
|
|
98710
|
-
const tempVec3b$
|
|
98704
|
+
const tempVec3a$4 = math.vec3();
|
|
98705
|
+
const tempVec3b$1 = math.vec3();
|
|
98711
98706
|
const tempVec3c$1 = math.vec3();
|
|
98712
98707
|
const tempVec3d = math.vec3();
|
|
98713
98708
|
|
|
@@ -98761,39 +98756,39 @@ class KeyboardAxisViewHandler {
|
|
|
98761
98756
|
|
|
98762
98757
|
if (axisViewRight) {
|
|
98763
98758
|
|
|
98764
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$
|
|
98759
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, perspectiveDist, tempVec3a$4), tempVec3d));
|
|
98765
98760
|
tempCameraTarget.look.set(center);
|
|
98766
98761
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98767
98762
|
|
|
98768
98763
|
} else if (axisViewBack) {
|
|
98769
98764
|
|
|
98770
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$
|
|
98765
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, perspectiveDist, tempVec3a$4), tempVec3d));
|
|
98771
98766
|
tempCameraTarget.look.set(center);
|
|
98772
98767
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98773
98768
|
|
|
98774
98769
|
} else if (axisViewLeft) {
|
|
98775
98770
|
|
|
98776
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$
|
|
98771
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldRight, -perspectiveDist, tempVec3a$4), tempVec3d));
|
|
98777
98772
|
tempCameraTarget.look.set(center);
|
|
98778
98773
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98779
98774
|
|
|
98780
98775
|
} else if (axisViewFront) {
|
|
98781
98776
|
|
|
98782
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$
|
|
98777
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldForward, -perspectiveDist, tempVec3a$4), tempVec3d));
|
|
98783
98778
|
tempCameraTarget.look.set(center);
|
|
98784
98779
|
tempCameraTarget.up.set(camera.worldUp);
|
|
98785
98780
|
|
|
98786
98781
|
} else if (axisViewTop) {
|
|
98787
98782
|
|
|
98788
|
-
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$
|
|
98783
|
+
tempCameraTarget.eye.set(math.addVec3(center, math.mulVec3Scalar(camera.worldUp, perspectiveDist, tempVec3a$4), tempVec3d));
|
|
98789
98784
|
tempCameraTarget.look.set(center);
|
|
98790
|
-
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$
|
|
98785
|
+
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, 1, tempVec3b$1), tempVec3c$1));
|
|
98791
98786
|
|
|
98792
98787
|
} else if (axisViewBottom) {
|
|
98793
98788
|
|
|
98794
|
-
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$4), tempVec3d));
|
|
98795
98790
|
tempCameraTarget.look.set(center);
|
|
98796
|
-
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$
|
|
98791
|
+
tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward, -1, tempVec3b$1)));
|
|
98797
98792
|
}
|
|
98798
98793
|
|
|
98799
98794
|
if ((!configs.firstPerson) && configs.followPointer) {
|
|
@@ -99367,8 +99362,6 @@ class KeyboardPanRotateDollyHandler {
|
|
|
99367
99362
|
const SCALE_DOLLY_EACH_FRAME = 1; // Recalculate dolly speed for eye->target distance on each Nth frame
|
|
99368
99363
|
const EPSILON = 0.001;
|
|
99369
99364
|
const tempVec3$1 = math.vec3();
|
|
99370
|
-
const tempVec3a$4 = math.vec3();
|
|
99371
|
-
const tempVec3b$1 = math.vec3();
|
|
99372
99365
|
|
|
99373
99366
|
/**
|
|
99374
99367
|
* Handles camera updates on each "tick" that were scheduled by the various controllers.
|
|
@@ -99388,7 +99381,7 @@ class CameraUpdater {
|
|
|
99388
99381
|
let countDown = SCALE_DOLLY_EACH_FRAME; // Decrements on each tick
|
|
99389
99382
|
let dollyDistFactor = 1.0; // Calculated when countDown is zero
|
|
99390
99383
|
let followPointerWorldPos = null; // Holds the pointer's World position when configs.followPointer is true
|
|
99391
|
-
|
|
99384
|
+
|
|
99392
99385
|
this._onTick = scene.on("tick", () => {
|
|
99393
99386
|
|
|
99394
99387
|
if (!(configs.active && configs.pointerEnabled)) {
|
|
@@ -99449,7 +99442,7 @@ class CameraUpdater {
|
|
|
99449
99442
|
|
|
99450
99443
|
if (pickController.pickResult && pickController.pickResult.worldPos) {
|
|
99451
99444
|
followPointerWorldPos = pickController.pickResult.worldPos;
|
|
99452
|
-
|
|
99445
|
+
|
|
99453
99446
|
} else {
|
|
99454
99447
|
dollyDistFactor = 1.0;
|
|
99455
99448
|
followPointerWorldPos = null;
|
|
@@ -99669,13 +99662,6 @@ class CameraUpdater {
|
|
|
99669
99662
|
});
|
|
99670
99663
|
}
|
|
99671
99664
|
|
|
99672
|
-
isLookingDownwards(look, eye) {
|
|
99673
|
-
const camera = this._scene.camera;
|
|
99674
|
-
const forwardAxis = math.normalizeVec3(math.subVec3(look, eye, tempVec3a$4));
|
|
99675
|
-
const rightAxis = math.cross3Vec3(forwardAxis, camera.worldUp, tempVec3b$1);
|
|
99676
|
-
let rightAxisLen = math.sqLenVec3(rightAxis);
|
|
99677
|
-
return (Math.abs(rightAxisLen) <= 0.1);
|
|
99678
|
-
}
|
|
99679
99665
|
|
|
99680
99666
|
destroy() {
|
|
99681
99667
|
this._scene.off(this._onTick);
|
|
@@ -103062,27 +103048,27 @@ class Viewer {
|
|
|
103062
103048
|
|
|
103063
103049
|
const needFinishSnapshot = (!this._snapshotBegun);
|
|
103064
103050
|
|
|
103065
|
-
if (!this._snapshotBegun) {
|
|
103066
|
-
this.beginSnapshot();
|
|
103067
|
-
}
|
|
103068
|
-
|
|
103069
|
-
if (!params.includeGizmos) {
|
|
103070
|
-
this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
|
|
103071
|
-
}
|
|
103072
|
-
|
|
103073
103051
|
const resize = (params.width !== undefined && params.height !== undefined);
|
|
103074
103052
|
const canvas = this.scene.canvas.canvas;
|
|
103075
103053
|
const saveWidth = canvas.clientWidth;
|
|
103076
103054
|
const saveHeight = canvas.clientHeight;
|
|
103077
|
-
|
|
103078
|
-
|
|
103055
|
+
canvas.style.width;
|
|
103056
|
+
canvas.style.height;
|
|
103079
103057
|
|
|
103080
103058
|
const width = params.width ? Math.floor(params.width) : canvas.width;
|
|
103081
103059
|
const height = params.height ? Math.floor(params.height) : canvas.height;
|
|
103082
103060
|
|
|
103083
103061
|
if (resize) {
|
|
103084
|
-
canvas.
|
|
103085
|
-
canvas.
|
|
103062
|
+
canvas.width = width;
|
|
103063
|
+
canvas.height = height;
|
|
103064
|
+
}
|
|
103065
|
+
|
|
103066
|
+
if (!this._snapshotBegun) {
|
|
103067
|
+
this.beginSnapshot();
|
|
103068
|
+
}
|
|
103069
|
+
|
|
103070
|
+
if (!params.includeGizmos) {
|
|
103071
|
+
this.sendToPlugins("snapshotStarting"); // Tells plugins to hide things that shouldn't be in snapshot
|
|
103086
103072
|
}
|
|
103087
103073
|
|
|
103088
103074
|
this.scene._renderer.renderSnapshot();
|
|
@@ -103090,8 +103076,6 @@ class Viewer {
|
|
|
103090
103076
|
const imageDataURI = this.scene._renderer.readSnapshot(params);
|
|
103091
103077
|
|
|
103092
103078
|
if (resize) {
|
|
103093
|
-
canvas.style.width = saveCssWidth;
|
|
103094
|
-
canvas.style.height = saveCssHeight;
|
|
103095
103079
|
canvas.width = saveWidth;
|
|
103096
103080
|
canvas.height = saveHeight;
|
|
103097
103081
|
|