فهرست منبع

fix vertex normal

sunag 6 سال پیش
والد
کامیت
2a5e8f901d
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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:
 		case NormalNode.LOCAL:
 
 
-			result = 'geometryNormal';
+			if ( builder.isShader( 'vertex' ) ) result = 'objectNormal';
+			else result = 'geometryNormal';
 
 
 			break;
 			break;