Explorar el Código

Half Fix Highlight layer and transparency (always appear over but no more blocky)

Sebastien Vandenberghe hace 7 años
padre
commit
95fa93cccb
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/Layer/babylon.highlightlayer.ts

+ 5 - 0
src/Layer/babylon.highlightlayer.ts

@@ -429,6 +429,11 @@
                     return;
                 }
 
+                // Do not block in blend mode.
+                if (material.needAlphaBlendingForMesh(mesh)) {
+                    return;
+                }
+
                 // Culling
                 engine.setState(material.backFaceCulling);