enable backface culling
This commit is contained in:
parent
e2771c9f36
commit
40979a9a31
|
@ -158,9 +158,9 @@ void init(void) {
|
|||
|
||||
GLuint indices[] = {
|
||||
1, 0, 10, 11, restart,
|
||||
2, 3, 9, 8, restart,
|
||||
2, 9, 3, 8, restart,
|
||||
5, 4, 6, 7, restart,
|
||||
12, 13, 15, 14, restart
|
||||
12, 15, 13, 14, restart
|
||||
};
|
||||
|
||||
DEBUG("Creating vertext buffer");
|
||||
|
@ -199,6 +199,9 @@ void init(void) {
|
|||
glClearColor(0.1f, 0.1f, 0.1f, 1.0f);
|
||||
glViewport(0, 0, initialWindowWidth, initialWindowHeight);
|
||||
|
||||
glEnable(GL_CULL_FACE);
|
||||
glFrontFace(GL_CCW);
|
||||
|
||||
initialiseStatusDisplay();
|
||||
|
||||
INFO("--- Initialisation done ---");
|
||||
|
|
Loading…
Reference in New Issue