Explorar o código

Allow RenderPass to render to screen (#9094)

David Phillips %!s(int64=9) %!d(string=hai) anos
pai
achega
366cbbb19f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) {