[osg-users] Geometry Shininess and Color Array

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


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.


Read this topic online here:

More information about the osg-users mailing list