In effect, I want to customs the shaders with bump and specular glsl code (this 
code works but override the shadow, obviously...), but I need to work with 
shadow first and then I will try to integrate the shaders....


Wojtek wrote:
> 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 < ()>
> 
> >  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 
> > (http://forum.openscenegraph.org/viewtopic.php?p=49042#49042)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
> > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> > 
> > 
> 
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49065#49065





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to