Does the scissor operation such as glScissor() operate before the rasterization of the geometric elmenets or after it?
Printable View
Does the scissor operation such as glScissor() operate before the rasterization of the geometric elmenets or after it?
The OpenGL Specs say that the scissor test comes after rasterization, but the OpenGL Specs only define behaviour, not implementation. That means a driver may implement the scissor test in any way that yields the same results as the OpenGL Spec. Many drivers implement the scissor in the rasterizer, i.e. they don't generate fragments that fall outside the scissor rectangle.
I don't know how specific cards implement scissor, but I think most implement the scissor test directly in the rasterizer. See http://fgiesen.wordpress.com/2011/07...e-2011-part-6/ for a detailed explanation how modern hardware rasterizers work.