PDA

View Full Version : VertexAttribs with matrices



H.Stony
03-06-2006, 08:51 AM
shader:

attribute mat3 matrix1;

mainprogram:

glVertexAttrib3f(location,1,0,0);
glVertexAttrib3f(location+1,0,1,0);
glVertexAttrib3f(location+2,0,0,1);

--> with this glVertexAttrib calls the behavior of the shader seems to be undefined. i don't use the matrix.

a Bug??


if i pass any data in the way you have described it i get this image:

http://hw4a.awx.at/uploads/Eitsch/appleDriverBug.jpg</img>


without the glVertexAttrib calls it looks like this:

http://hw4a.awx.at/uploads/Eitsch/bump2.jpg</img>


but i don't use this attribute in the shader.

OneSadCookie
03-07-2006, 09:07 PM
Interesting that it's the VertexAttrib calls that are at fault...

I've had problems specifying both matrix uniforms and matrix vertex attributes. I'd appreciate it if you'd file a bug to support mine :)

H.Stony
03-09-2006, 05:39 AM
bug report is submitted.