[osg-users] Adding a shader cancels shadows!
Robert Osfield
robert.osfield at gmail.com
Fri May 23 01:08:29 PDT 2008
Hi Mael,
As Art and Sebastian have mentioned, since osgShadow implements its
own shaders these will replace you own ones. This does make
integrating other effects with osgShadow difficult. Shaders are in
general difficult to combine, but osgShadow certainly doesn't make it
any easier. I think the right way forward for osgShadow is to provide
a public interface for getting the uniforms and individual shaders,
the allow users to define a main() shader to combine these are their
own shaders. Alas this isn't just a little tweak to osgShadow so not
something that can be slotted in right away.
Robert.
More information about the osg-users
mailing list