Original Post
Hello everyone. I have a question about shaders. In my case I want to be able to use multiple shader in a game, im kind of new to shaders so please feel free to correct me. Im currently using the ID3DXEffect structure for doing this. Now I want to use multiple effects on my application, like lighting, blur, monochrome,.. etc. I'm not really sure how to do it. when I render an effect I have to draw a subset of a mesh. Now I don't know, If I have to do this for every effect. seams like a lot of overhead. The other thing is I want the effect to be in separed files so if I want to make a new game I just put a new fx file on the folder and have a script that loads the effect into the engine. The last part I've already done. And I loaded it two effects. They are active in the application. Now, I haven't tested rendering two different effects because I don't know how is the proper way to do it. When I render the second effect, like light, will the first effect desappear or will it persist. to make everything more clear. this is how it goes: set the texture do monochrome effect render submesh then set texture to the new effect do blur render submesh again will both effects get combined or I can't do that. And what if the second effect is a light. Any help will be great, thanx