@xeokit/xeokit-sdk 2.6.97 → 2.6.98
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 +9 -8
- package/dist/xeokit-sdk.es.js +9 -8
- package/dist/xeokit-sdk.es5.js +8 -7
- package/dist/xeokit-sdk.min.cjs.js +4 -4
- package/dist/xeokit-sdk.min.es.js +4 -4
- package/dist/xeokit-sdk.min.es5.js +4 -4
- package/package.json +1 -1
- package/src/viewer/scene/Component.js +1 -0
- package/src/viewer/scene/math/math.js +3 -3
- package/src/viewer/scene/model/layer/programs/SnapProgram.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xeokit/xeokit-sdk",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.98",
|
|
4
4
|
"description": "3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision",
|
|
5
5
|
"module": "./dist/xeokit-sdk.es.js",
|
|
6
6
|
"main": "./dist/xeokit-sdk.cjs.js",
|
|
@@ -2115,9 +2115,9 @@ const math = {
|
|
|
2115
2115
|
|
|
2116
2116
|
const sy = math.lenVec3(vec);
|
|
2117
2117
|
|
|
2118
|
-
vec[
|
|
2119
|
-
vec[
|
|
2120
|
-
vec[
|
|
2118
|
+
vec[0] = mat[8];
|
|
2119
|
+
vec[1] = mat[9];
|
|
2120
|
+
vec[2] = mat[10];
|
|
2121
2121
|
|
|
2122
2122
|
const sz = math.lenVec3(vec);
|
|
2123
2123
|
|
|
@@ -5,7 +5,7 @@ export const SnapProgram = function(programVariables, geometry, isSnapInit, isPo
|
|
|
5
5
|
const coordinateScaler = programVariables.createUniform("vec3", "coordinateScaler", (set, state) => set(state.legacyFrameCtx.snapPickCoordinateScale));
|
|
6
6
|
|
|
7
7
|
const vWorldPosition = programVariables.createVarying("vec3", "vWorldPosition", () => `${geometry.attributes.position.world}.xyz`);
|
|
8
|
-
const vPickColor = programVariables.createVarying("vec4", "vPickColor", () => geometry.attributes.pickColor
|
|
8
|
+
const vPickColor = programVariables.createVarying("vec4", "vPickColor", () => geometry.attributes.pickColor); // Using `flat` causes an instability - see XEOK-385 and XEOK-401
|
|
9
9
|
|
|
10
10
|
const outCoords = programVariables.createOutput("highp ivec4", "outCoords", 0);
|
|
11
11
|
const outNormal = programVariables.createOutput("highp ivec4", "outNormal", 1);
|