I want to use gui for render target instead of quad because quad needs to update window size and maybe some thing else. How i can do this? I trying "grading tutorial "with gui rectangle, but see only gray screen.
Why not just change the view and projection to identity before drawing the quad pred ?
This is how I add some post effects
-- Change quat to screen space
render.set_view(IDENTITY)
render.set_projection(vmath.matrix4())
render.enable_texture(0, self.horizantal_target, render.BUFFER_COLOR_BIT)
render.draw(self.blur_pred, vertical)
render.disable_texture(0)
5 Likes