Beau
11-10-2006, 01:47 AM
Hi,
I'm building an anisotropic shader so I need to set the tangent and binormal vector for each vertex but when I set the binormal like this:
GLint BLoc = glGetAttribLocation(*sp,"B");
glVertexAttrib3f(BLoc, b.x,b.y,b.z);
I get glitches, even when I don't use the attribute value in my shader at all.
What could be wrong?
Thanks,
Beau
I'm building an anisotropic shader so I need to set the tangent and binormal vector for each vertex but when I set the binormal like this:
GLint BLoc = glGetAttribLocation(*sp,"B");
glVertexAttrib3f(BLoc, b.x,b.y,b.z);
I get glitches, even when I don't use the attribute value in my shader at all.
What could be wrong?
Thanks,
Beau