View Full Version : Combining shaders

05-31-2005, 11:57 AM
Ok let's start with this first post...

I wanted to know if there's a way (or will be) to combine multiple shaders of the same type.
For example, at a given time, a game object has 2 geometrical deforms meaning that the app would need to bind 2 vertex shaders at the same time.

I think this might be difficult to address because of the modelview(projection) matrix transforms orders and things like that.....

However, this would be a very powerful tool, and could be useful to combine surface properties in multiple fragment shaders.

Well... am I just dreaming or not ?

There might be a way to do something like this with some custom script languages, right ? But what about doing this on the fly during the game ?

Thanks in advance.

05-31-2005, 05:17 PM
What results do you expect from such a methadology? Do you want to render the object twice or something? If so, why not just render the object twice?

Tom Nuydens
06-01-2005, 12:04 AM
I think this thread (http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=7;t=000472) covers the same question?

06-01-2005, 02:28 AM
Thanks Tom... I'm gonna take a look on Cg to understand what Jell-O means with 'interfaces'.

But don't misunderstand me, I love GLSL :)