diff options
author | sanine-a <sanine.not@pm.me> | 2020-11-01 00:18:13 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-11-01 00:18:13 -0500 |
commit | cf75cc42cd11c31ff9402751bec98ba607fd820f (patch) | |
tree | 95267aac01e9fde9fff6b6362464f2e9b4ac0e92 /demo/main.lua | |
parent | 42d42c9ba3b741d167eaa2196c686962559686f1 (diff) |
fix depth map bug in demo
Diffstat (limited to 'demo/main.lua')
-rw-r--r-- | demo/main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demo/main.lua b/demo/main.lua index 5474609..ab3e8b3 100644 --- a/demo/main.lua +++ b/demo/main.lua @@ -92,13 +92,13 @@ function honey.draw() if buffer then honey.set_framebuffer(ScreenQuad.fb) - honey.enable_depth_test(true) honey.clear_color(Vector.Vec4.new().array, true, true, false) + honey.enable_depth_test(true) draw_suzanne() honey.set_framebuffer(0) - honey.enable_depth_test(true) - honey.clear_color(Vector.Vec4.new{0,0,1,1}.array, true, true, false) + honey.enable_depth_test(false) + honey.clear_color(Vector.Vec4.new{0,0,1,1}.array, true, false, false) ScreenQuad:draw() else honey.clear_color(Vector.Vec4.new{1,1,0,1}.array, true, true, false) |