Просмотр исходного кода

use config parameters (#29371)

Co-authored-by: aardgoose <angus.sawyer@email.com>
aardgoose 1 год назад
Родитель
Сommit
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 {
 			logarithmicDepthBuffer = false,
 			alpha = true,
+			depth = true,
+			stencil = false,
 			antialias = false,
 			samples = 0,
 			getFallback = null
@@ -72,8 +74,8 @@ class Renderer {
 
 		this.sortObjects = true;
 
-		this.depth = true;
-		this.stencil = false;
+		this.depth = depth;
+		this.stencil = stencil;
 
 		this.clippingPlanes = [];
 

粤ICP备19079148号