Fix incorrect GLSL bump mapping in editmode when the UV coordinates are

flipped, was not passing sign on to GLSL shader.
This commit is contained in:
Brecht Van Lommel
2013-07-01 14:49:08 +00:00
parent 7a304c2d11
commit e6830300b7

View File

@@ -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);
}
}