I am trying to do GPU box selection (by using imageStore in the fragment shader as suggested to me in an earlier question). Basically I would like to call imageStore only on pixels that lie inside a user-defined screen rectangle. How do I setup my camera for the selection render pass such that everything outside the selection rectangle is clipped?
🔒 Locked
How to create camera view/projection matrices based on a screen rect?
Advertisement
Advertisement