Combining shaders

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.

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?

I think this thread covers the same question?

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 :slight_smile:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.