Explorar el Código

VREffect: unset the rendertarget before clear (#9695)

This will unset the current rendertarget of the renderer if no
rendertarget is specified to the render()-call.
Martin Schuhfuss hace 9 años
padre
commit
92a577dc86
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      examples/js/effects/VREffect.js

+ 1 - 0
examples/js/effects/VREffect.js

@@ -281,6 +281,7 @@ THREE.VREffect = function ( renderer, onError ) {
 
 
 			} else  {
 			} else  {
 
 
+				renderer.setRenderTarget( null );
 				renderer.setScissorTest( true );
 				renderer.setScissorTest( true );
 
 
 			}
 			}