Hi material colors are available in gl_FrontMaterial struct in fragment shader there are vec4's gl_FrontMaterial.diffuse, .specular, .ambient, .emission, and float .shininess there are also material params premultiplied with lightsource params in gl_FrontLightProduct struct (.diffuse = materialDiffuse * lightsourceDiffuse, same for others)
Cheers. 30.01.2013, 19:24, "Andrea Martini" <[email protected]>: > Hi Glenn, > thank you for your suggestions. Can i do the same thing also with materials? > > Thank you! > > Cheers, > Andrea > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=52281#52281 > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

