فهرست منبع

use config parameters (#29371)

Co-authored-by: aardgoose <angus.sawyer@email.com>
aardgoose 1 سال پیش
والد
کامیت
7b1f2725fa
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      src/renderers/common/Renderer.js

+ 4 - 2
src/renderers/common/Renderer.js

@@ -44,6 +44,8 @@ class Renderer {
 		const {
 		const {
 			logarithmicDepthBuffer = false,
 			logarithmicDepthBuffer = false,
 			alpha = true,
 			alpha = true,
+			depth = true,
+			stencil = false,
 			antialias = false,
 			antialias = false,
 			samples = 0,
 			samples = 0,
 			getFallback = null
 			getFallback = null
@@ -72,8 +74,8 @@ class Renderer {
 
 
 		this.sortObjects = true;
 		this.sortObjects = true;
 
 
-		this.depth = true;
-		this.stencil = false;
+		this.depth = depth;
+		this.stencil = stencil;
 
 
 		this.clippingPlanes = [];
 		this.clippingPlanes = [];
 
 

粤ICP备19079148号