Skip to content
Snippets Groups Projects
Commit 90a1d1b8 authored by bobarna's avatar bobarna
Browse files

Depth buffer now really is fixed

parent b3230d49
No related branches found
No related tags found
1 merge request!2Head propagate
...@@ -29,6 +29,7 @@ Scene Scene(WIDTH, HEIGHT); ...@@ -29,6 +29,7 @@ Scene Scene(WIDTH, HEIGHT);
static void Initialize() { static void Initialize() {
glViewport(0, 0, WIDTH, HEIGHT); glViewport(0, 0, WIDTH, HEIGHT);
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);
glEnable(GL_DEPTH_TEST);
glDepthMask(GL_TRUE); glDepthMask(GL_TRUE);
glLoadIdentity(); glLoadIdentity();
glClearColor(196.0f / 255.0f, 233.0f / 255.0f, 241.0f / 255.0f, 1.0f); glClearColor(196.0f / 255.0f, 233.0f / 255.0f, 241.0f / 255.0f, 1.0f);
......
...@@ -43,7 +43,7 @@ void Scene::Build() { ...@@ -43,7 +43,7 @@ void Scene::Build() {
auto testObject = auto testObject =
new Object(phongShader, new Object(phongShader,
new ObjGeometry("../data/plane.obj"), new ObjGeometry("../data/susanne.obj"),
headMaterial, headMaterial,
headTexture); headTexture);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment