Browse Source

WebGPURenderer: Fix `material.depthTest` in `logarithmicDepthBuffer` (#30214)

* fix depthTest in logarithmicDepthBuffer

* cleanup
sunag 1 year ago
parent
commit
688976a568
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/materials/nodes/NodeMaterial.js

+ 1 - 1
src/materials/nodes/NodeMaterial.js

@@ -439,7 +439,7 @@ class NodeMaterial extends Material {
 
 		const clippingNode = this.setupClipping( builder );
 
-		if ( this.depthWrite === true ) {
+		if ( this.depthWrite === true || this.depthTest === true ) {
 
 			// only write depth if depth buffer is configured
 

粤ICP备19079148号