|
@@ -202,7 +202,7 @@ 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;
|
|
|
|
|
@@ -210,13 +210,13 @@ class SSAOPass extends Pass {
|
|
|
|
|
|
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;
|
|
|
|
|
@@ -224,7 +224,7 @@ class SSAOPass extends Pass {
|
|
|
|
|
|
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;
|
|
|
|