[SOLVED]Post processing shader help
Posted: Mon Dec 18, 2006 7:06 pm
I’ve just started experimenting with post processing shaders in IRRLicht, and although there is no tutorial on this, I’ve somehow managed to figure it out...
Now I know how to RTT and then display the texture as a quad (in my case I’m just using driver->draw2DImage), but this is not the issue.
I have two problems.
First, there is no way to set the size of the quad in the texture that RTT is drawing to. Ex. lets say that I have a 512x512 texture, but I only want RTT to draw to a portion of that texture, let’s say 512x384.
My second issue is that IRRLicht won’t let me set a RTT texture bigger than the current resolution. So if my resolution is 800x600, I can’t use a bigger texture than 512x512.
I hope that someone can help me with this. Thanks in advance!
Now I know how to RTT and then display the texture as a quad (in my case I’m just using driver->draw2DImage), but this is not the issue.
I have two problems.
First, there is no way to set the size of the quad in the texture that RTT is drawing to. Ex. lets say that I have a 512x512 texture, but I only want RTT to draw to a portion of that texture, let’s say 512x384.
My second issue is that IRRLicht won’t let me set a RTT texture bigger than the current resolution. So if my resolution is 800x600, I can’t use a bigger texture than 512x512.
I hope that someone can help me with this. Thanks in advance!