Parcourir la source

WebGLRenderTarget: shareDepthFrom in constructor options.

tsone il y a 10 ans
Parent
commit
c109f693de
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
 
 };