Re: [osg-users] Fwd: shader implementation - newbie

2009-04-27 Thread Robert Osfield
Hi Sajjad, A lot has been written about shaders and OSG over the years, so rather than me waste time going over old ground please could you search the archives. Robert. On Mon, Apr 27, 2009 at 2:47 AM, ami guru dosto.wa...@gmail.com wrote: Hello Robert, After going through several source

[osg-users] Fwd: shader implementation - newbie

2009-04-26 Thread ami guru
Hello Robert, After going through several source code regarding shaders, i think that using seperate program for different type of shader is a better choice. In that case i am creating a vector of osg::Program initially, and attaching the shaders corresponding to the programs. Now with user

[osg-users] Fwd: shader implementation - newbie

2009-04-25 Thread ami guru
Hello Robert, Thanks for the feedback. I am trying to design the interface as follows: if(userEvent == Toon Shader) { //adding the corresponding shader to the program for the StateSet of the model } else if(userEvent == Gooch Shader) { //adding the corresponding shader to the program