Merge pull request #792 from romulox-x/normalmap-view-bug

fix view dependent problem in normal mapping
This commit is contained in:
Juan Linietsky 2014-10-14 07:41:56 -03:00
commit 94e35ef316

View File

@ -306,7 +306,7 @@ void main() {
#endif
#if defined(ENABLE_TANGENT_INTERP)
tangent_interp=normalize(tangent_in);
tangent_interp=normalize((modelview * vec4(tangent_in,0.0)).xyz);
binormal_interp = normalize( cross(normal_interp,tangent_interp) * binormalf );
#endif