|
@@ -39,6 +39,7 @@ class SSAOPass extends Pass {
|
|
this.height = ( height !== undefined ) ? height : 512;
|
|
this.height = ( height !== undefined ) ? height : 512;
|
|
|
|
|
|
this.clear = true;
|
|
this.clear = true;
|
|
|
|
+ this.needsSwap = false;
|
|
|
|
|
|
this.camera = camera;
|
|
this.camera = camera;
|
|
this.scene = scene;
|
|
this.scene = scene;
|
|
@@ -229,13 +230,9 @@ class SSAOPass extends Pass {
|
|
|
|
|
|
case SSAOPass.OUTPUT.Default:
|
|
case SSAOPass.OUTPUT.Default:
|
|
|
|
|
|
- this.copyMaterial.uniforms[ 'tDiffuse' ].value = readBuffer.texture;
|
|
|
|
- this.copyMaterial.blending = NoBlending;
|
|
|
|
- this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : writeBuffer );
|
|
|
|
-
|
|
|
|
this.copyMaterial.uniforms[ 'tDiffuse' ].value = this.blurRenderTarget.texture;
|
|
this.copyMaterial.uniforms[ 'tDiffuse' ].value = this.blurRenderTarget.texture;
|
|
this.copyMaterial.blending = CustomBlending;
|
|
this.copyMaterial.blending = CustomBlending;
|
|
- this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : writeBuffer );
|
|
|
|
|
|
+ this.renderPass( renderer, this.copyMaterial, this.renderToScreen ? null : readBuffer );
|
|
|
|
|
|
break;
|
|
break;
|
|
|
|
|