Enable back face culling

This commit is contained in:
Abdelrahman Said 2024-12-27 20:36:18 +00:00
parent 8447717875
commit 9de54d016d

View File

@ -167,6 +167,7 @@ int main() {
glViewport(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);
glEnable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE);
std::vector<Vertex> vertices = {
// positions // normals // texture coords