Skip to content

Commit

Permalink
SSAOPass: Fix debug output. (#28762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored and mrdoob committed Jul 2, 2024
1 parent a98611a commit 8e13a22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/jsm/postprocessing/SSAOPass.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,29 +202,29 @@ class SSAOPass extends Pass {

this.copyMaterial.uniforms[ 'tDiffuse' ].value = this.ssaoRenderTarget.texture;
this.copyMaterial.blending = NoBlending;
this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : writeBuffer );
this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : readBuffer );

break;

case SSAOPass.OUTPUT.Blur:

this.copyMaterial.uniforms[ 'tDiffuse' ].value = this.blurRenderTarget.texture;
this.copyMaterial.blending = NoBlending;
this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : writeBuffer );
this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : readBuffer );

break;

case SSAOPass.OUTPUT.Depth:

this.renderPass( renderer, this.depthRenderMaterial, this.renderToScreen ? null : writeBuffer );
this.renderPass( renderer, this.depthRenderMaterial, this.renderToScreen ? null : readBuffer );

break;

case SSAOPass.OUTPUT.Normal:

this.copyMaterial.uniforms[ 'tDiffuse' ].value = this.normalRenderTarget.texture;
this.copyMaterial.blending = NoBlending;
this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : writeBuffer );
this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : readBuffer );

break;

Expand Down

0 comments on commit 8e13a22

Please sign in to comment.