Original Post
Hi,
I'm wondering what is the good method to process my rendered image using several consecutive pixel shaders.
Let's say I have a 3D model I want to render, and 3 different pixel shaders A, B, C that perform effects (for example gaussian blur filter + sepia + inverse color, let's say I can't put them all together in a single shader for some reason). What is the good way to send the output of the first pixel shader (A) to the next one (B)?
I was thinking about a render to target for the first vertex/pixel shader (A) and then apply it to a quad taking the whole screen that I then render using the next vertex/pixel shader (B).
In that case I have:
Model > vertex Shader > pixel sh. A > to target > texture the quad > vertex sh. > pixel sh. B > to target > texture the quad > vertex sh. > pixel sh. C > final output
but I don't need to re-project and re-rasterize the whole thing between each shader. I just want the pixels to be processed by the next shader as they are. I'm wondering what is the "clean way" to do so.
I hope my explanation makes sense.
Thanks!