diff options
author | quou <quou@disroot.org> | 2025-01-02 15:42:05 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-02 15:42:05 +1100 |
commit | b03109dbb087bd441c0e3905753f3dd97d44d7b8 (patch) | |
tree | 9f4372b2aa643c29cdd338b8776c02d175b4a881 /c2.cpp | |
parent | 6d4b56258b89ba12bec5e329b81de62284c47ce1 (diff) |
Simpler depth prepass shader
Diffstat (limited to 'c2.cpp')
-rw-r--r-- | c2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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()); |