Re: [osg-users] Using shaders (vert and frag) with StandardShadowMap shaders.
Nice! Thanks for the suggestion, I'm now able to start with blending my shaders with shadow shaders... danoo wrote: Regarding your code, I think you missunderstood the concept of shaders and shadowtechnique. You do not need to have a visitor to add the shaders to your objects. You have to set the shaders to your shadow technique! Its the shadowscene node which takes responsibility to render your scene using the shadowtechnique's shaders. The scene objects do not have to know anything about the shader... Paradox wrote: Hi, No one can give me an idea to integrate lppsm with customs shaders? Thank you! Cheers, Dario -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49183#49183 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Using shaders (vert and frag) with StandardShadowMap shaders.
Regarding your code, I think you missunderstood the concept of shaders and shadowtechnique. You do not need to have a visitor to add the shaders to your objects. You have to set the shaders to your shadow technique! Its the shadowscene node which takes responsibility to render your scene using the shadowtechnique's shaders. The scene objects do not have to know anything about the shader... Paradox wrote: Hi, No one can give me an idea to integrate lppsm with customs shaders? Thank you! Cheers, Dario -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49172#49172 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Using shaders (vert and frag) with StandardShadowMap shaders.
Hi, No one can give me an idea to integrate lppsm with customs shaders? Thank you! Cheers, Dario -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49168#49168 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Using shaders (vert and frag) with StandardShadowMap shaders.
Hi, ...but, my question is: is correct the whole procedure? In practice, we reassign the program shaders to all objects and osgShadow traversal will compute the uniforms to pass to the shaders via stasetthis look correct to me, but there must be another way to make it work... Thank you! Cheers, Dario -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49042#49042 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org