Browse Source

more fillmode supported

Cedric Guillemet 4 năm trước cách đây
mục cha
commit
eb95ffad2c
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/Meshes/abstractMesh.ts

+ 4 - 1
src/Meshes/abstractMesh.ts

@@ -1545,7 +1545,10 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
             if (!material) {
                 continue;
             }
-            if (this.getIndices()?.length && (material.fillMode == Constants.MATERIAL_TriangleStripDrawMode)) {
+            if (this.getIndices()?.length && (material.fillMode == Constants.MATERIAL_TriangleStripDrawMode ||
+                    material.fillMode == Constants.MATERIAL_TriangleFillMode ||
+                    material.fillMode == Constants.MATERIAL_WireFrameFillMode ||
+                    material.fillMode == Constants.MATERIAL_PointFillMode )) {
                 anySubmeshSupportInterect = true;
                 break;
             }