summaryrefslogtreecommitdiff
path: root/lighting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lighting.cpp')
-rw-r--r--lighting.cpp8
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,