From d2b9714c5ab557de69a985bdb7e4a0ab0fd95864 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 5 Oct 2022 05:05:00 +0200 Subject: a --- main.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index fec93cec..47a41118 100644 --- a/main.cpp +++ b/main.cpp @@ -153,13 +153,14 @@ app::app(const Arguments& arguments): } void app::drawEvent() { - GL::defaultFramebuffer.clear(GL::FramebufferClear::Color); - -#if 1 - GL::defaultFramebuffer.clear(GL::FramebufferClear::Depth); +#if 0 + GL::defaultFramebuffer.clear(GL::FramebufferClear::Color | GL::FramebufferClear::Depth); GL::Renderer::setDepthMask(true); GL::Renderer::setDepthFunction(GL::Renderer::DepthFunction::LessOrEqual); GL::Renderer::enable(GL::Renderer::Feature::DepthTest); +#else + GL::defaultFramebuffer.clear(GL::FramebufferClear::Color); + GL::Renderer::setDepthFunction(GL::Renderer::DepthFunction::Never); #endif update_window_scale(); @@ -181,9 +182,6 @@ void app::drawEvent() { } #endif - //auto floor1_sampler = _shader.bind_sampler(floor1); - //auto wall_sampler = _shader.bind_sampler(wall1); - #if 1 draw_chunk(_chunk); #endif -- cgit v1.2.3