From 3634e53cc68671a576754d6bb668f585f7e2c53d Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 22 Feb 2025 23:24:35 +1100 Subject: basic temporal coherence for shadow --- c2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'c2.cpp') 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); -- cgit v1.2.3-54-g00ecf