From: Mikko Rasa Date: Wed, 5 May 2021 12:30:51 +0000 (+0300) Subject: Set shadowmap darkness to 1.0 by default X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=40db45bc521aa8cc154d745ef4b51c1358124ad3;p=libs%2Fgl.git Set shadowmap darkness to 1.0 by default It's not physically correct for lights to affect shadowed areas. --- 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()); }