]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/shadowmap.cpp
Change max_lights to a fixed constant
[libs/gl.git] / source / effects / shadowmap.cpp
index ddb78aeb6ff5a3c07aa59cb07548604089b48e8d..9aee4907a1cd5eb174bfd30d32f0bbd38c32f388 100644 (file)
@@ -24,7 +24,7 @@ ShadowMap::ShadowMap(unsigned w, unsigned h, Renderable &c, const Lighting *l):
        fbo.attach(DEPTH_ATTACHMENT, depth_buf, 0);
 
        set_darkness(1.0f);
-       for(unsigned i=0; i<4; ++i)
+       for(unsigned i=0; i<6; ++i)
        {
                string base = format("shadows[%d]", i);
                shdata.uniform(base+".type", 0);