Multiple Render Targets

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Boogy
Posts: 3
Joined: Sat Jan 30, 2010 9:21 pm

Multiple Render Targets

Post by Boogy »

I have a problem with multiple render targets and don't know how to approach it.

I got a saturation shader who saturates the screen and renders it to a texture. Thats working fine, but now I want to add a second shader that blurs that texture.
I got a blur shader that is working. But how do I make it so that it takes the saturated image and blurs it?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Render your saturated output to another RTT and attach this texture to a screen quad, then apply your blur shader to that quad

Maybe you should implement a post-processing framework (or use one from the forums) so you don't have to do this manually everytime you want to add a post-processing effect
Boogy
Posts: 3
Joined: Sat Jan 30, 2010 9:21 pm

Post by Boogy »

Thanks for your reply :)

I got it working now :)
Post Reply