From 90a1d1b8779a37fc1cc1491745b6873f9753131f Mon Sep 17 00:00:00 2001 From: bobarna <barnabas.borcsok@gmail.com> Date: Sun, 29 Nov 2020 02:35:45 +0100 Subject: [PATCH] Depth buffer now really is fixed --- src/main.cpp | 1 + src/rendering/Scene.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 9000cc0..0756941 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,6 +29,7 @@ Scene Scene(WIDTH, HEIGHT); static void Initialize() { glViewport(0, 0, WIDTH, HEIGHT); glMatrixMode(GL_MODELVIEW); + glEnable(GL_DEPTH_TEST); glDepthMask(GL_TRUE); glLoadIdentity(); glClearColor(196.0f / 255.0f, 233.0f / 255.0f, 241.0f / 255.0f, 1.0f); diff --git a/src/rendering/Scene.cpp b/src/rendering/Scene.cpp index a8a0d85..b13d76f 100644 --- a/src/rendering/Scene.cpp +++ b/src/rendering/Scene.cpp @@ -43,7 +43,7 @@ void Scene::Build() { auto testObject = new Object(phongShader, - new ObjGeometry("../data/plane.obj"), + new ObjGeometry("../data/susanne.obj"), headMaterial, headTexture); -- GitLab