소스 검색

fix scale vec2

SUNAG 9 년 전
부모
커밋
346a8ea0e4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/js/nodes/utils/NormalMapNode.js

+ 2 - 2
examples/js/nodes/utils/NormalMapNode.js

@@ -29,14 +29,14 @@ THREE.NormalMapNode.prototype.generate = function( builder, output ) {
 			this.normal.build( builder, 'v3' ) + ',' +
 			this.value.build( builder, 'v3' ) + ',' +
 			this.value.coord.build( builder, 'v2' ) + ',' +
-			this.scale.build( builder, 'fv1' ) + ')', this.type, output );
+			this.scale.build( builder, 'v2' ) + ')', this.getType( builder ), output );
 
 	}
 	else {
 
 		console.warn( "THREE.NormalMapNode is not compatible with " + builder.shader + " shader." );
 
-		return builder.format( 'vec3( 0.0 )', this.type, output );
+		return builder.format( 'vec3( 0.0 )', this.getType( builder ), output );
 
 	}