소스 검색

PR feedback simplifying tangent calculation

Michael Dahrea 8 년 전
부모
커밋
008185d702
2개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 2
      src/Shaders/ShadersInclude/morphTargetsVertex.fx
  2. 0 4
      src/Shaders/ShadersInclude/morphTargetsVertexGlobalDeclaration.fx

+ 1 - 2
src/Shaders/ShadersInclude/morphTargetsVertex.fx

@@ -6,7 +6,6 @@
 	#endif
 
 	#ifdef MORPHTARGETS_TANGENT
-	tangentTemp = tangentUpdated.xyz + ((tangent{X} - tangent.xyz) * morphTargetInfluences[{X}]);
-	tangentUpdated = vec4(tangentTemp, tangentUpdated.w);
+	tangentUpdated.xyz += (tangent{X} - tangent.xyz) * morphTargetInfluences[{X}];
 	#endif
 #endif

+ 0 - 4
src/Shaders/ShadersInclude/morphTargetsVertexGlobalDeclaration.fx

@@ -1,7 +1,3 @@
 #ifdef MORPHTARGETS
 	uniform float morphTargetInfluences[NUM_MORPH_INFLUENCERS];
-
-	#ifdef MORPHTARGETS_TANGENT
-	vec3 tangentTemp;
-	#endif
 #endif