@xeokit/xeokit-sdk 2.3.0-beta-7 → 2.3.0-beta-8

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.
@@ -47255,7 +47255,9 @@ class TrianglesBatchingLayer {
47255
47255
  // Color
47256
47256
 
47257
47257
  let f0;
47258
- if (!visible || culled || xrayed) { // Highlight & select are layered on top of color - not mutually exclusive
47258
+ if (!visible || culled || xrayed
47259
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
47260
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
47259
47261
  f0 = RENDER_PASSES.NOT_RENDERED;
47260
47262
  } else {
47261
47263
  if (transparent) {
@@ -54833,7 +54835,9 @@ class TrianglesInstancingLayer {
54833
54835
  // Normal fill
54834
54836
 
54835
54837
  let f0;
54836
- if (!visible || culled || xrayed) { // Highlight & select are layered on top of color - not mutually exclusive
54838
+ if (!visible || culled || xrayed
54839
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
54840
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
54837
54841
  f0 = RENDER_PASSES.NOT_RENDERED;
54838
54842
  } else {
54839
54843
  if (meshTransparent) {
@@ -56564,7 +56568,9 @@ class LinesBatchingLayer {
56564
56568
  // Color
56565
56569
 
56566
56570
  let f0;
56567
- if (!visible || culled || xrayed) {
56571
+ if (!visible || culled || xrayed
56572
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
56573
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
56568
56574
  f0 = RENDER_PASSES.NOT_RENDERED;
56569
56575
  } else {
56570
56576
  if (transparent) {
@@ -57983,7 +57989,9 @@ class LinesInstancingLayer {
57983
57989
  // Normal fill
57984
57990
 
57985
57991
  let f0;
57986
- if (!visible || culled || xrayed) {
57992
+ if (!visible || culled || xrayed
57993
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
57994
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
57987
57995
  f0 = RENDER_PASSES.NOT_RENDERED;
57988
57996
  } else {
57989
57997
  if (meshTransparent) {
@@ -60500,7 +60508,9 @@ class PointsBatchingLayer {
60500
60508
  // Normal fill
60501
60509
 
60502
60510
  let f0;
60503
- if (!visible || culled || xrayed) {
60511
+ if (!visible || culled || xrayed
60512
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
60513
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
60504
60514
  f0 = RENDER_PASSES.NOT_RENDERED;
60505
60515
  } else {
60506
60516
  if (transparent) {
@@ -63771,7 +63781,9 @@ class PointsInstancingLayer {
63771
63781
  // Normal fill
63772
63782
 
63773
63783
  let f0;
63774
- if (!visible || culled || xrayed) {
63784
+ if (!visible || culled || xrayed
63785
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
63786
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
63775
63787
  f0 = RENDER_PASSES.NOT_RENDERED;
63776
63788
  } else {
63777
63789
  if (meshTransparent) {
@@ -66405,7 +66417,6 @@ class PerformanceModel extends Component {
66405
66417
  * @param {Number[]} [cfg.uvDecodeMatrix] A 3x3 matrix for decompressing ````uvCompressed````.
66406
66418
  * @param {Number[]} [cfg.indices] Array of primitive connectivity indices. Not required for `points` primitives.
66407
66419
  * @param {Number[]} [cfg.edgeIndices] Array of edge line indices. Used only with 'triangles', 'solid' and 'surface' primitives. Automatically generated internally if not supplied, using the optional ````edgeThreshold```` given to the ````PerformanceModel```` constructor.
66408
- * @param {Number[]} [cfg.origin] Optional geometry origin, relative to {@link PerformanceModel#origin}. When this is given, then ````positions```` are assumed to be relative to this.
66409
66420
  */
66410
66421
  createGeometry(cfg) {
66411
66422
  const geometryId = cfg.id;
@@ -47251,7 +47251,9 @@ class TrianglesBatchingLayer {
47251
47251
  // Color
47252
47252
 
47253
47253
  let f0;
47254
- if (!visible || culled || xrayed) { // Highlight & select are layered on top of color - not mutually exclusive
47254
+ if (!visible || culled || xrayed
47255
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
47256
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
47255
47257
  f0 = RENDER_PASSES.NOT_RENDERED;
47256
47258
  } else {
47257
47259
  if (transparent) {
@@ -54829,7 +54831,9 @@ class TrianglesInstancingLayer {
54829
54831
  // Normal fill
54830
54832
 
54831
54833
  let f0;
54832
- if (!visible || culled || xrayed) { // Highlight & select are layered on top of color - not mutually exclusive
54834
+ if (!visible || culled || xrayed
54835
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
54836
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
54833
54837
  f0 = RENDER_PASSES.NOT_RENDERED;
54834
54838
  } else {
54835
54839
  if (meshTransparent) {
@@ -56560,7 +56564,9 @@ class LinesBatchingLayer {
56560
56564
  // Color
56561
56565
 
56562
56566
  let f0;
56563
- if (!visible || culled || xrayed) {
56567
+ if (!visible || culled || xrayed
56568
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
56569
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
56564
56570
  f0 = RENDER_PASSES.NOT_RENDERED;
56565
56571
  } else {
56566
56572
  if (transparent) {
@@ -57979,7 +57985,9 @@ class LinesInstancingLayer {
57979
57985
  // Normal fill
57980
57986
 
57981
57987
  let f0;
57982
- if (!visible || culled || xrayed) {
57988
+ if (!visible || culled || xrayed
57989
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
57990
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
57983
57991
  f0 = RENDER_PASSES.NOT_RENDERED;
57984
57992
  } else {
57985
57993
  if (meshTransparent) {
@@ -60496,7 +60504,9 @@ class PointsBatchingLayer {
60496
60504
  // Normal fill
60497
60505
 
60498
60506
  let f0;
60499
- if (!visible || culled || xrayed) {
60507
+ if (!visible || culled || xrayed
60508
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
60509
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
60500
60510
  f0 = RENDER_PASSES.NOT_RENDERED;
60501
60511
  } else {
60502
60512
  if (transparent) {
@@ -63767,7 +63777,9 @@ class PointsInstancingLayer {
63767
63777
  // Normal fill
63768
63778
 
63769
63779
  let f0;
63770
- if (!visible || culled || xrayed) {
63780
+ if (!visible || culled || xrayed
63781
+ || (highlighted && !this.model.scene.highlightMaterial.glowThrough)
63782
+ || (selected && !this.model.scene.selectedMaterial.glowThrough) ) {
63771
63783
  f0 = RENDER_PASSES.NOT_RENDERED;
63772
63784
  } else {
63773
63785
  if (meshTransparent) {
@@ -66401,7 +66413,6 @@ class PerformanceModel extends Component {
66401
66413
  * @param {Number[]} [cfg.uvDecodeMatrix] A 3x3 matrix for decompressing ````uvCompressed````.
66402
66414
  * @param {Number[]} [cfg.indices] Array of primitive connectivity indices. Not required for `points` primitives.
66403
66415
  * @param {Number[]} [cfg.edgeIndices] Array of edge line indices. Used only with 'triangles', 'solid' and 'surface' primitives. Automatically generated internally if not supplied, using the optional ````edgeThreshold```` given to the ````PerformanceModel```` constructor.
66404
- * @param {Number[]} [cfg.origin] Optional geometry origin, relative to {@link PerformanceModel#origin}. When this is given, then ````positions```` are assumed to be relative to this.
66405
66416
  */
66406
66417
  createGeometry(cfg) {
66407
66418
  const geometryId = cfg.id;