diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-07-01 18:49:08 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-07-01 18:49:08 +0400 |
commit | e6830300b7fbc03f72fbc35cafd35a147bf590dd (patch) | |
tree | 6d8c1275cedaf5668c88e08954d34c2f5153a2f0 | |
parent | 7a304c2d1173a2c20ba69dc61b56dadbf35fd90f (diff) |
Fix incorrect GLSL bump mapping in editmode when the UV coordinates are
flipped, was not passing sign on to GLSL shader.
-rw-r--r-- | source/blender/blenkernel/intern/editderivedmesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/editderivedmesh.c b/source/blender/blenkernel/intern/editderivedmesh.c index be072d9cc16..87f7da8a1fb 100644 --- a/source/blender/blenkernel/intern/editderivedmesh.c +++ b/source/blender/blenkernel/intern/editderivedmesh.c @@ -778,7 +778,7 @@ static void emdm_pass_attrib_vertex_glsl(DMVertexAttribs *attribs, BMLoop *loop, } 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); } } |