2
0
Эх сурвалжийг харах

WebGLRenderTarget: Honor scissor properties in `copy()`. (#25805)

Michael Herzog 2 жил өмнө
parent
commit
52d0b6d6a9

+ 3 - 1
src/renderers/WebGLMultipleRenderTargets.js

@@ -56,8 +56,10 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
 		this.height = source.height;
 		this.depth = source.depth;
 
-		this.viewport.copy( source.viewport );
 		this.scissor.copy( source.scissor );
+		this.scissorTest = source.scissorTest;
+
+		this.viewport.copy( source.viewport );
 
 		this.depthBuffer = source.depthBuffer;
 		this.stencilBuffer = source.stencilBuffer;

+ 3 - 0
src/renderers/WebGLRenderTarget.js

@@ -87,6 +87,9 @@ class WebGLRenderTarget extends EventDispatcher {
 		this.height = source.height;
 		this.depth = source.depth;
 
+		this.scissor.copy( source.scissor );
+		this.scissorTest = source.scissorTest;
+
 		this.viewport.copy( source.viewport );
 
 		this.texture = source.texture.clone();