summaryrefslogtreecommitdiff
path: root/c2.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-02-22 23:24:35 +1100
committerquou <quou@disroot.org>2025-02-22 23:25:55 +1100
commit3634e53cc68671a576754d6bb668f585f7e2c53d (patch)
tree7e22902d96d13d3cecc72c92155de47f8db5f5de /c2.cpp
parented5d6dfa2ed08c5a9185f3eb4ffb4deb898ed2af (diff)
basic temporal coherence for shadowHEADmaster
Diffstat (limited to 'c2.cpp')
-rw-r--r--c2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/c2.cpp b/c2.cpp
index 3867280..3a14ea5 100644
--- a/c2.cpp
+++ b/c2.cpp
@@ -836,6 +836,7 @@ struct C2 : public App {
Texture& bb = dev->get_texture(hdr_target);
pcam.asp = (float)bb.w / (float)bb.h;
+ renderer.prev_vp = pcam.get_proj() * pcam.get_view();
orbit_cam.update_orbit(*this);
pcam.update();
lighting.update(dev, ctx, *world, renderer, scene);