From 40db45bc521aa8cc154d745ef4b51c1358124ad3 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 5 May 2021 15:30:51 +0300 Subject: [PATCH] Set shadowmap darkness to 1.0 by default It's not physically correct for lights to affect shadowed areas. --- source/effects/shadowmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/effects/shadowmap.cpp b/source/effects/shadowmap.cpp index f11ea7a7..cd9ad827 100644 --- a/source/effects/shadowmap.cpp +++ b/source/effects/shadowmap.cpp @@ -42,7 +42,7 @@ void ShadowMap::init(unsigned s) fbo.attach(DEPTH_ATTACHMENT, depth_buf, 0); fbo.require_complete(); - set_darkness(0.7); + set_darkness(1.0f); shdata.uniform("shd_world_matrix", Matrix()); } -- 2.45.2