Ver código fonte

PR feedback simplifying tangent calculation

Michael Dahrea 8 anos atrás
pai
commit
008185d702

+ 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