[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57906] trunk/blender/source/blender/ blenkernel/intern/editderivedmesh.c: Fix incorrect GLSL bump mapping in editmode when the UV coordinates are
Brecht Van Lommel
brechtvanlommel at pandora.be
Mon Jul 1 16:49:09 CEST 2013
Revision: 57906
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57906
Author: blendix
Date: 2013-07-01 14:49:08 +0000 (Mon, 01 Jul 2013)
Log Message:
-----------
Fix incorrect GLSL bump mapping in editmode when the UV coordinates are
flipped, was not passing sign on to GLSL shader.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/editderivedmesh.c
Modified: trunk/blender/source/blender/blenkernel/intern/editderivedmesh.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/editderivedmesh.c 2013-07-01 14:14:21 UTC (rev 57905)
+++ trunk/blender/source/blender/blenkernel/intern/editderivedmesh.c 2013-07-01 14:49:08 UTC (rev 57906)
@@ -778,7 +778,7 @@
}
if (attribs->tottang) {
const float *tang = attribs->tang.array[i * 4 + index_in_face];
- glVertexAttrib3fvARB(attribs->tang.gl_index, tang);
+ glVertexAttrib4fvARB(attribs->tang.gl_index, tang);
}
}
More information about the Bf-blender-cvs
mailing list