[osg-users] Camera question
pmartz at skew-matrix.com
Thu Nov 5 13:43:59 PST 2009
Wyatt Earp wrote:
> I am working on this now and another question has arisen. How do I apply
> different shaders for different render passes.
> For example, I want one set of shaders to be in effect when I render to
> texture, but a different set of shaders for the other camera(s), which will
> use the texture from the RTT camera.
> Do I attached my stateset with the shaders directly to each camera node?
Yes. Shaders are state just like any other state.
More information about the osg-users