소스 검색

dpoit, fix depthMask not off

Alexander Rose 2 년 전
부모
커밋
44c69b1716
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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] };
     }