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 --- lighting.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lighting.cpp') diff --git a/lighting.cpp b/lighting.cpp index 4f1fdfb..1eb4298 100644 --- a/lighting.cpp +++ b/lighting.cpp @@ -108,7 +108,7 @@ void Lighting::recreate(Device* dev, int w, int h) { for (i = 0; i < 2; i++) { ss_shadows[i] = dev->create_texture( "Shadow accumulation buffer", - texture_format_r8i, + texture_format_r16f, Texture_Flags::sampleable | Texture_Flags::colour_target, w, h, @@ -121,10 +121,10 @@ void Lighting::recreate(Device* dev, int w, int h) { ss_shadow_slices[i][j] = dev->alias_texture( ss_shadows[i], "Shadow accumulation buffer slice", - texture_format_r8i, + texture_format_r16f, Texture_Flags::colour_target, - shadow_res, - shadow_res, + w, + h, 1, 1, 1, -- cgit v1.2.3-54-g00ecf