The backface of quads are rendered

Started by Mihai_Ionut_Floares, December 07, 2020, 01:16:33

Previous topic - Next topic

KaiHH


Mihai_Ionut_Floares

No. I enabled only the depth test...
And that line that I don't really know what it does: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

KaiHH

Quote from: Mihai_Ionut_Floares on December 07, 2020, 10:25:15
No. I enabled only the depth test...
Well... you need to enable backface culling then. Please read the referenced article.
And about what glClear() does: You can always just search/google the function names, you know, and you will get the documentation for that
-> https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glClear.xml