Alexander Rose 2 éve
szülő
commit
0585f7b9ca
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      src/mol-canvas3d/passes/postprocessing.ts

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

@@ -734,6 +734,7 @@ export class PostprocessingPass {
         // don't render occlusion if offset is given,
         // which will reuse the existing occlusion
         if (props.occlusion.name === 'on' && this.occlusionOffset[0] === 0 && this.occlusionOffset[1] === 0) {
+            if (isTimingMode) this.webgl.timer.mark('SSAO.render');
             if (this.ssaoScale < 1) {
                 this.downsampledDepthTarget.bind();
                 this.downsampleDepthRenderable.render();
@@ -747,6 +748,7 @@ export class PostprocessingPass {
 
             this.ssaoBlurSecondPassFramebuffer.bind();
             this.ssaoBlurSecondPassRenderable.render();
+            if (isTimingMode) this.webgl.timer.markEnd('SSAO.render');
         }
 
         if (toDrawingBuffer) {