[osg-users] Geometry Shininess and Color Array

Erik Hensens ehensens at hunter.com
Fri Sep 13 11:28:23 PDT 2019


Hello!

I have a Geometry on whose state set I used to set a material that I made shiny via osg::Material::setShininess(). The problem is that now I have the need to set various colors across the geometry. I tried doing this with the geometry's color array, but that approach didn't work unless I stopped setting a material on the geometry's state set.

I understand the logic here, that a material should override a color array, but I'm curious if there's some other way to make the geometry shiny now that I can't set a material on its state set?

I hope my question is clear but please let me know otherwise.

Thank you!

Cheers,
Erik

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







More information about the osg-users mailing list