[osg-users] OSG and OpenGL ES 2.0

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


Hi,

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).

Cheers,
Christian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=38270#38270








More information about the osg-users mailing list