Hi all I use ID3DX::Effect of DX9 for my shaders.
I have a skinned mesh and coded my own .fx shader but I have this problem where some of my models have 64+ bones and if I declare a Matrix4x4 array of 64 indices or more, the shader doesn't work.
There's no error loading the .fx file, my models just won't appear on screen.
Doesn't work:
float4x4 Bones[64] : WORLDMATRIXARRAY;
Works:
float4x4 Bones[59] : WORLDMATRIXARRAY;
I declare some other variables in the shader aswell. But not many.
I declare VS_2_0 and PS_2_0 in the Technique part of the .fx file. (Maybe there's a limit of .fx size because of this lower version the Vertex Shader?)
Anyone has a suggestion on how to resolve this problem?