[osg-users] Geometry Shininess and Color Array

Chris Djali krizdjali at gmail.com
Sun Sep 15 16:41:17 PDT 2019


Hi,

Have you tried playing with osg::Material::setColorMode? It controls glColorMaterial settings, which is used to switch between having the material colour be determined by the global colour or vertex colours. You probably had the Material set to use its own colour, but if you re-add it and set the mode to GL_DIFFUSE or GL_AMBIENT_AND_DIFFUSE, your vertex colours set in the colour array should still work.

Cheers,
Chris

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







More information about the osg-users mailing list