[osg-users] Uniform Matrix arrays for shaders

2010-04-09 Thread Aitor Ardanza
Hi, I'm new here, but after being a long time looking at the forum the answer to my question, I decided to write this post. I have the following problem. I need to pass an array of matrix to a vertex program. I do as follow: Code: osg::Matrixf boneMatrices[MAX_BONES]; Uniform *g_boneMatrixUnif

Re: [osg-users] Uniform Matrix arrays for shaders

2010-04-09 Thread Jean-Sébastien Guay
Hi Aitor, I need to pass an array of matrix to a vertex program. I do as follow: Code: osg::Matrixf boneMatrices[MAX_BONES]; Uniform *g_boneMatrixUniform = new Uniform("boneMatrices",*boneMatrices); cylinderStateSet->addUniform(g_boneMatrixUniform); //update cylinderStateSet->getUniform("bone

Re: [osg-users] Uniform Matrix arrays for shaders

2010-04-12 Thread Aitor Ardanza
ok, I just try and work! Thank you very much! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26664#26664 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/

Re: [osg-users] Uniform Matrix arrays for shaders

2014-04-09 Thread Jaime
And how can you update it?? I am trying to id tiwh ModelViewMatrix and ModelViewPerspectiveMatrix and I can't. Thank you! Cheers, Jaime -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=58785#58785 _