If you enable two-sided lighting, the driver flips the lighting normals
so that the back side of the polygon is lit correctly. There should be
no need to do this in a shader (with OGL that supports fixed
functionality...).

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of
Christian Buchner
Sent: Thursday, March 14, 2013 10:46 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] [forum] Rendering backface like front face


The front and back material properties were set to same values, it's
just that when doing the calculations for the back side, the normal
vector is not pointing towards the light source but away from it.

I only looked at this issue briefly, and concluded that it would take
some GLSL to fix it.

Christian


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

Reply via email to