]> git.tdb.fi Git - libs/gl.git/commitdiff
Set shadowmap darkness to 1.0 by default
authorMikko Rasa <tdb@tdb.fi>
Wed, 5 May 2021 12:30:51 +0000 (15:30 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 5 May 2021 12:30:51 +0000 (15:30 +0300)
It's not physically correct for lights to affect shadowed areas.

source/effects/shadowmap.cpp

index f11ea7a710558085c4ce059289fac848baff3cc9..cd9ad8274c7f6f61a7ee1a68347c5b4c4201f757 100644 (file)
@@ -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());
 }