Andrew Burnett-Thompson wrote:
Thanks for your reply Jason,

I actually worked this out I think, I removed mat->setDiffuse and added

mat->setColorMode(osg::Material::ColorMode::DIFFUSE) and it seemed to do the trick!

OK, that just makes your Material diffuse color track the vertex colors (i.e.: when the vertex color changes, it automatically adjusts the Material's diffuse color to match).

Glad to hear you got what you were after!

--"J"

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to