]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix shadow map uniform name
authorMikko Rasa <tdb@tdb.fi>
Thu, 11 Jun 2020 14:18:08 +0000 (17:18 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 11 Jun 2020 19:06:49 +0000 (22:06 +0300)
source/shadowmap.cpp

index 921a1747875b4bf0b349042dac6aab26095cff84..0e32210f49a044a36f4977fc1e069854ee42f57a 100644 (file)
@@ -99,7 +99,7 @@ void ShadowMap::render(Renderer &renderer, const Tag &tag) const
 
        unsigned unit = renderer.allocate_effect_texunit();
        int iunit = unit;
-       shdata.uniform("shadow", iunit);
+       shdata.uniform("shadow_map", iunit);
 
        Bind _bind_depth(depth_buf, unit);