
Originally Posted by
niyodanie
For the case above, we were picking the whole frame. What if I need to monitor only specific portions of the frame? Let's say the user can select three different regions or portions of the screen. So here, we would have coordinates (x,y and width, height) of these regions like rectangles in windows programming. Can I use the same approach that is : using one texture with those three portions and same fragment shader ? How would I redirect those selected regions to the texture? And here, I need to be able to tell which specific region had its pixels changed.