diff options
author | quou <quou@disroot.org> | 2025-02-22 23:24:35 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-02-22 23:25:55 +1100 |
commit | 3634e53cc68671a576754d6bb668f585f7e2c53d (patch) | |
tree | 7e22902d96d13d3cecc72c92155de47f8db5f5de /lighting.cpp | |
parent | ed5d6dfa2ed08c5a9185f3eb4ffb4deb898ed2af (diff) |
Diffstat (limited to 'lighting.cpp')
-rw-r--r-- | lighting.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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, |