i have done a vertex skinning animation with 52 bones and all was working fine in the vertex shader before the new webgl spec but now i have this error : []index expression must be constant each time i index my bones matrix array because now its forbidden to put a variable in an array apparently in webgl. here is an example :
outVert += weights4 * (bones[bone4] * curVert);
outVert += weights5 * ([b]bones[bone5] [/b]* curVert);/[b]/error index expression must be constant[/b]
outVert += weights6 * ([b]bones[bone6][/b] * curVert);/[b]/error index expression must be constant[/b]
outVert += weights7 * [b](bones[bone7] [/b]* curVert);[b]//error index expression must be constant[/b]
any idea to fix it? thanks