We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ea0d7 commit f60d1dcCopy full SHA for f60d1dc
src/renderers/WebGLRenderTarget.js
@@ -34,6 +34,7 @@ class WebGLRenderTarget extends EventDispatcher {
34
35
this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
36
this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : false;
37
+
38
this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
39
40
}
@@ -93,7 +94,8 @@ class WebGLRenderTarget extends EventDispatcher {
93
94
95
this.depthBuffer = source.depthBuffer;
96
this.stencilBuffer = source.stencilBuffer;
- this.depthTexture = source.depthTexture;
97
98
+ if ( source.depthTexture !== null ) this.depthTexture = source.depthTexture.clone();
99
100
return this;
101
0 commit comments