Hello everybody,
I’m trying to do hardware skinning with GLSL but I’m always getting a linker error when trying to access my bone matrix array. Here is a simple test shader that causes the problem
uniform int index;
uniform mat4 skeleton[64];
void main(void) {
mat4 test = skeleton[index];
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
I’m getting an error C5041: cannot locate suitable resource to bind parameter “<null atom>”
Can anybody tell me what’s wrong with the code or how else I can access the bone array with a vertex attribute index?
Thanks a lot!