Browse Source

dpoit, fix depthMask not off

Alexander Rose 2 years ago
parent
commit
44c69b1716
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/mol-canvas3d/passes/dpoit.ts

+ 2 - 0
src/mol-canvas3d/passes/dpoit.ts

@@ -113,6 +113,7 @@ export class DpoitPass {
 
         this.depthFramebuffers[0].bind();
         state.blendEquation(blendMinMax!.MAX);
+        state.depthMask(false);
 
         return { depth: this.depthTextures[1], frontColor: this.colorFrontTextures[1], backColor: this.colorBackTextures[1] };
     }
@@ -135,6 +136,7 @@ export class DpoitPass {
 
         this.depthFramebuffers[this.writeId].bind();
         state.blendEquation(blendMinMax!.MAX);
+        state.depthMask(false);
 
         return { depth: this.depthTextures[this.readId], frontColor: this.colorFrontTextures[this.readId], backColor: this.colorBackTextures[this.readId] };
     }