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

WebGLRenderTarget: shareDepthFrom in constructor options.

tsone 10 жил өмнө
parent
commit
c109f693de

+ 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;
 
 };