Преглед изворни кода

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

* fix depthTest in logarithmicDepthBuffer

* cleanup
sunag пре 1 година
родитељ
комит
688976a568
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );
 		const clippingNode = this.setupClipping( builder );
 
 
-		if ( this.depthWrite === true ) {
+		if ( this.depthWrite === true || this.depthTest === true ) {
 
 
 			// only write depth if depth buffer is configured
 			// only write depth if depth buffer is configured
 
 

粤ICP备19079148号