diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-05 05:05:00 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-05 05:05:00 +0200 |
| commit | d2b9714c5ab557de69a985bdb7e4a0ab0fd95864 (patch) | |
| tree | 053fd6c2808451ce3645c09c53f9163f9da8c4e8 /main.cpp | |
| parent | 32f504c6afb811363b5af0a25fe213d37233c49d (diff) | |
a
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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 |
