@xeokit/xeokit-sdk 2.4.2-beta-45 → 2.4.2-beta-46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.4.2-beta-45",
3
+ "version": "2.4.2-beta-46",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -12,7 +12,8 @@ class EmphasisEdgesShaderSource {
12
12
 
13
13
  function buildVertex(mesh) {
14
14
  const scene = mesh.scene;
15
- const clipping = scene._sectionPlanesState.sectionPlanes.length > 0;
15
+ const sectionPlanesState = scene._sectionPlanesState;
16
+ const clipping = sectionPlanesState.getNumAllocatedSectionPlanes() > 0;
16
17
  const quantizedGeometry = !!mesh._geometry._state.compressGeometry;
17
18
  const billboard = mesh._state.billboard;
18
19
  const stationary = mesh._state.stationary;
@@ -15,7 +15,8 @@ function buildVertex(mesh) {
15
15
  const scene = mesh.scene;
16
16
  const lightsState = scene._lightsState;
17
17
  const normals = hasNormals(mesh);
18
- const clipping = scene._sectionPlanesState.sectionPlanes.length > 0;
18
+ const sectionPlanesState = scene._sectionPlanesState;
19
+ const clipping = sectionPlanesState.getNumAllocatedSectionPlanes() > 0;
19
20
  const quantizedGeometry = !!mesh._geometry._state.compressGeometry;
20
21
  const billboard = mesh._state.billboard;
21
22
  const stationary = mesh._state.stationary;
@@ -16,7 +16,8 @@ class OcclusionShaderSource {
16
16
 
17
17
  function buildVertex(mesh) {
18
18
  const scene = mesh.scene;
19
- const clipping = scene._sectionPlanesState.sectionPlanes.length > 0;
19
+ const sectionPlanesState = scene._sectionPlanesState;
20
+ const clipping = sectionPlanesState.getNumAllocatedSectionPlanes() > 0;
20
21
  const quantizedGeometry = !!mesh._geometry._state.compressGeometry;
21
22
  const billboard = mesh._state.billboard;
22
23
  const stationary = mesh._state.stationary;
@@ -14,7 +14,8 @@ class PickMeshShaderSource {
14
14
 
15
15
  function buildVertex(mesh) {
16
16
  const scene = mesh.scene;
17
- const clipping = scene._sectionPlanesState.sectionPlanes.length > 0;
17
+ const sectionPlanesState = scene._sectionPlanesState;
18
+ const clipping = sectionPlanesState.getNumAllocatedSectionPlanes() > 0;
18
19
  const quantizedGeometry = !!mesh._geometry._state.compressGeometry;
19
20
  const billboard = mesh._state.billboard;
20
21
  const stationary = mesh._state.stationary;
@@ -11,7 +11,8 @@ class PickTriangleShaderSource {
11
11
 
12
12
  function buildVertex(mesh) {
13
13
  const scene = mesh.scene;
14
- const clipping = scene._sectionPlanesState.sectionPlanes.length > 0;
14
+ const sectionPlanesState = scene._sectionPlanesState;
15
+ const clipping = sectionPlanesState.getNumAllocatedSectionPlanes() > 0;
15
16
  const quantizedGeometry = !!mesh._geometry._state.compressGeometry;
16
17
  const src = [];
17
18
  src.push('#version 300 es');