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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to