On Wed, May 21, 2008 at 10:06 AM, Daniel Moos <[EMAIL PROTECTED]> wrote:
> Thanks for your reply...
> I already have played a little bit with osg::Material. But I don't create
> two colors... Below is my try:
>     osg::ref_ptr<osg::Material> material = new osg::Material;
>     material->setColorMode(osg::Material::AMBIENT_AND_DIFFUSE); // switch
> glColor usage off

material->setColorMode(osg::Material::OFF)l // switchings glColor usage off...

You'll also need to enable the two sided lighting model via
osg::LightModel stata attribute.

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

Reply via email to