[osg-users] wireframe darker wrt the surface color
Trajce Nikolov NICK
trajce.nikolov.nick at gmail.com
Wed Mar 29 04:52:17 PDT 2017
Try a simple shader then :-)
On Wed, Mar 29, 2017 at 10:51 AM, Gianni Ambrosio <g.ambrosio+osg at gmail.com>
wrote:
> Hi Nick
>
> Trajce Nikolov NICK wrote:
> > Hi Gianni,
> >
> > you can do something like
> > getOrCreateStateSet()->setAttributeAndModes(new
> osg::Depth(osg::Depth::ALWAYS, 0.0, 1.0, false), osg::StateAttribute::ON);
> >
>
> I tried the line you suggested with lights on or off but I have in every
> case a gray wireframe. While I would like to have a darker/lighter yellow
> wireframe on a yellow surface, and a darker/lighter green wireframe on a
> green surface.
>
> Gianni
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70594#70594
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170329/fcd81cb5/attachment-0002.htm>
More information about the osg-users
mailing list