Well, I'm trying to learn some OpenGL programming with simple examples, so...the problem is, when drawing a quad with four different vertex colors and using smooth shading, the gradient filling the quad changes when some points go outside the viewport. I'm not using any kind of culling, only doing a view matrix transformation to rotate the scene. See images below
(http://static.inky.ws/image/3512/50c9eed639769/1.png)
(http://static.inky.ws/image/3513/50c9eed639769/2.png)
Can anybody give me a hint?
Thanks ;)
It looks like it is converting it to triangles differently. Try drawing it with a Triangle Strip.
Code might help.
Already fixed it using triangles, thanks anyway!!