Browse Source

Renderer: Stencil Buffer disabled in RenderContext by default (#27908)

* no stencil clear by default and update webgpu part

* update with stencil = true

* cleanup

* true by default

* align renderer behavior

* remove clear

* remove clear 2

* remove clear 3
Renaud Rohlinger 1 year ago
parent
commit
f763181aca

+ 1 - 1
examples/jsm/renderers/common/RenderContext.js

@@ -16,7 +16,7 @@ class RenderContext {
 		this.clearDepth = true;
 		this.clearDepthValue = 1;
 
-		this.stencil = true;
+		this.stencil = false;
 		this.clearStencil = true;
 		this.clearStencilValue = 1;
 

+ 1 - 1
examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js

@@ -268,7 +268,7 @@ class WebGPUTextureUtils {
 
 	}
 
-	getDepthBuffer( depth = true, stencil = true ) {
+	getDepthBuffer( depth = true, stencil = false ) {
 
 		const backend = this.backend;
 		const { width, height } = backend.getDrawingBufferSize();