Commit 92c9a97c by Philipp Adolf

Enable backface culling

parent fe7cd2b0
...@@ -123,7 +123,9 @@ void MainWidget::initializeGL(){ ...@@ -123,7 +123,9 @@ void MainWidget::initializeGL(){
glClearColor(0.0, 0.0, 0.0, 0.0); glClearColor(0.0, 0.0, 0.0, 0.0);
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE); glFrontFace(GL_CW);
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
// Shader // Shader
QString vertSource = QLatin1String(":/subdivide.vert"); QString vertSource = QLatin1String(":/subdivide.vert");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment