Browse Source

WebGLRenderTarget: shareDepthFrom in constructor options.

tsone 10 years ago
parent
commit
c109f693de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/WebGLRenderTarget.js

+ 1 - 1
src/renderers/WebGLRenderTarget.js

@@ -29,7 +29,7 @@ THREE.WebGLRenderTarget = function ( width, height, options ) {
 
 	this.generateMipmaps = true;
 
-	this.shareDepthFrom = null;
+	this.shareDepthFrom = options.shareDepthFrom !== undefined ? options.shareDepthFrom : null;
 
 };