On 8/5/2011 11:03 AM, Alessandro Terenzi wrote:
Hi,
I want to make an object invisible but, nonetheless, I also want it to receive 
shadows, any suggestion?

By the way, I'm using the ShadowMap technique to implement shadows.

Thanks.
Alessandro


When I use depth map shadows, I use a fragment shader to sample the depth texture. If I wanted to see only the shadow areas but not the lit areas, I'd just add the appropriate conditional call to "discard".

Hope that helps,

--
  -Paul Martz      Skew Matrix Software
                   http://www.skew-matrix.com/

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to