[osg-users] OSG and OpenGL ES 2.0

Christian Ruzicka c.ruzicka at gmx.de
Wed Apr 6 12:38:27 PDT 2011


just one addition to my previous post: Normally you wouldn't define an extra vertex attribute array for the vertex color/normal as I did in this test code. Just use 

void Geometry::setColorArray(Array* array);
void Geometry::setNormalArray(Array* array);

and access the vertex color/normal in the vertex shader via "osg_Color" and "osg_Normal" (OSG will do the mapping for you).


Read this topic online here:

More information about the osg-users mailing list