Browse Source

fix vertex normal

sunag 6 years ago
parent
commit
2a5e8f901d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      examples/jsm/nodes/accessors/NormalNode.js

+ 2 - 1
examples/jsm/nodes/accessors/NormalNode.js

@@ -36,7 +36,8 @@ NormalNode.prototype.generate = function ( builder, output ) {
 
 		case NormalNode.LOCAL:
 
-			result = 'geometryNormal';
+			if ( builder.isShader( 'vertex' ) ) result = 'objectNormal';
+			else result = 'geometryNormal';
 
 			break;