Hi,
in OpenGL if GL_LIGHTING is disabled, the final color of polygon is determined
by glColor.
If you see ShapeDrawable::drawImplemenation(), there is glColor call.
Code:
osg::State& state = *renderInfo.getState();
GLBeginEndAdapter& gl = state.getGLBeginEndAdapter();
if (_shape.valid())
{
gl.Color4fv(_color.ptr()); ///// <---------
DrawShapeVisitor dsv(state,_tessellationHints.get());
_shape->accept(dsv);
}
Cheers,
Filip[/code]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44181#44181
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org