summaryrefslogtreecommitdiff
path: root/c2.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-02 15:42:05 +1100
committerquou <quou@disroot.org>2025-01-02 15:42:05 +1100
commitb03109dbb087bd441c0e3905753f3dd97d44d7b8 (patch)
tree9f4372b2aa643c29cdd338b8776c02d175b4a881 /c2.cpp
parent6d4b56258b89ba12bec5e329b81de62284c47ce1 (diff)
Simpler depth prepass shader
Diffstat (limited to 'c2.cpp')
-rw-r--r--c2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/c2.cpp b/c2.cpp
index 39a57c4..d7b475e 100644
--- a/c2.cpp
+++ b/c2.cpp
@@ -273,9 +273,13 @@ extern "C" int entrypoint() {
camera.asp = (float)bb.w / (float)bb.h;
scene.update(camera, dev);
ctx.debug_push("scene");
+ ctx.debug_push("depth prepass");
scene.render(dev, &frame_arena, depth_prepass, clamped_linear);
+ ctx.debug_pop();
+ ctx.debug_push("forward");
scene.render(dev, &frame_arena, pass2, clamped_linear);
ctx.debug_pop();
+ ctx.debug_pop();
ctx.debug_push("ui");
ui->render(&frame_arena, dev->get_backbuffer());