소스 검색

Really fixed skinning bug

Mikael Emtinger 14 년 전
부모
커밋
a4a96f259c
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/renderers/WebGLRenderer.js

+ 5 - 2
src/renderers/WebGLRenderer.js

@@ -3891,9 +3891,8 @@ THREE.Snippets = {
 
 	].join("\n"),
 	
-	// vertex animation
+	// morph targets
 
-//	vertexanimated_pars_vertex: [
 	morphtarget_pars_vertex: [
 
 	"#ifdef USE_MORPHTARGETS",
@@ -3921,6 +3920,10 @@ THREE.Snippets = {
 		
 		"gl_Position = projectionMatrix * modelViewMatrix * vec4( morphed, 1.0 );",
 
+	"#else",
+		"#ifndef USE_SKINNING",
+			"gl_Position = projectionMatrix * mvPosition;",
+		"#endif",
 	"#endif"
 
 	].join("\n")