On Fri, May 23, 2008 at 5:08 AM, Robert Osfield <[EMAIL PROTECTED]>
wrote:

> 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.
>

What if osgShadow could return a string containing the Shadow shader
encapsulated in a function and its Uniforms?, something like string s =
PSSM->getShaderFuncAndUniforms() so the user can just "paste" together both
shaders.

It guess it should work as long as the user called the Shader function from
the main() in his Shader (and set the Uniforms), right?

Just a thought, not sure it is feasible...

Alejandro.-

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

Reply via email to