Welp... The standard procedure is to set the shaders in the ShadowTechnique with SetMainVertexShader/ SetMainFragmentShader / SetShadowVertexShader / SetShadowFragmentShader methods...
>From your initial post I assumed that approch you took is different as its only a begining step, before further customization of shaders. So aplying the shaders and program for all the objects in scene did not ring the bell for me. If that was wrong impression, and you do not plan on further tweaking the shaders, you better stick to standard procedure... WL 2012/7/25 Dario Minieri <[email protected]> > 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 staset....this 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

