Browse Source

Allow RenderPass to render to screen (#9094)

David Phillips 9 years ago
parent
commit
366cbbb19f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/postprocessing/RenderPass.js

+ 1 - 1
examples/js/postprocessing/RenderPass.js

@@ -39,7 +39,7 @@ THREE.RenderPass.prototype = Object.assign( Object.create( THREE.Pass.prototype
 
 		}
 
-		renderer.render( this.scene, this.camera, readBuffer, this.clear );
+		renderer.render( this.scene, this.camera, this.renderToScreen ? null : readBuffer, this.clear );
 
 		if ( this.clearColor ) {