Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-01 18:49:08 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-01 18:49:08 +0400
commite6830300b7fbc03f72fbc35cafd35a147bf590dd (patch)
tree6d8c1275cedaf5668c88e08954d34c2f5153a2f0 /source/blender/blenkernel
parent7a304c2d1173a2c20ba69dc61b56dadbf35fd90f (diff)
Fix incorrect GLSL bump mapping in editmode when the UV coordinates are
flipped, was not passing sign on to GLSL shader.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/editderivedmesh.c2
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);
}
}