Explorar o código

PixelationPassNode: Fix zero normal processing. (#32159)

Michael Herzog hai 8 meses
pai
achega
94f32836d0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/tsl/display/PixelationPassNode.js

+ 1 - 1
examples/jsm/tsl/display/PixelationPassNode.js

@@ -193,7 +193,7 @@ class PixelationNode extends TempNode {
 
 			const nei = property( 'float', 'nei' );
 
-			If( this.normalEdgeStrength.greaterThan( 0.0 ), () => {
+			If( this.normalEdgeStrength.greaterThan( 0.0 ).and( normal.length().greaterThan( 0 ) ), () => {
 
 				nei.assign( normalEdgeIndicator( depth, normal ) );
 

粤ICP备19079148号