Explorar el Código

Merge branch 'master' of https://github.com/molstar/molstar

Alexander Rose hace 4 años
padre
commit
a278337b4c
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      src/mol-geo/geometry/points/points.ts
  2. 1 0
      src/mol-geo/geometry/text/text.ts

+ 1 - 0
src/mol-geo/geometry/points/points.ts

@@ -207,5 +207,6 @@ export namespace Points {
             !props.pointFilledCircle ||
             (props.pointFilledCircle && props.pointEdgeBleach === 0)
         );
+        state.writeDepth = state.opaque;
     }
 }

+ 1 - 0
src/mol-geo/geometry/text/text.ts

@@ -283,6 +283,7 @@ export namespace Text {
         BaseGeometry.updateRenderableState(state, props);
         state.pickable = false;
         state.opaque = false;
+        state.writeDepth = true;
     }
 }