Reputation: 6958
I have a viewport setup with orthographic projection. If I ask OpenGL to draw a quad outside of the viewport (x y bounds) using glDrawArrays()
, does it ignore, or still draws it?
Upvotes: 2
Views: 727
Reputation: 14788
opengl will process your vertices (modelview transform etc.) because thats how it figures out where the pixels would end up, but when it comes to actually rendering, it will not 'draw' anything, because the pixel coordinates will not exist in the framebuffer. Depending on exactly where the coordinates are and other factors opengl may be able to stop processing your vertices sooner, but in general it will do all the coordinate transformations at least.
So in a word no, it will not 'draw' them.
Upvotes: 4