Enable back face culling
This commit is contained in:
parent
8447717875
commit
9de54d016d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user