X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Flighting.cpp;h=d8e5400626ae43eb26221ebd92bd748bb8043972;hp=6957126b6c3bfeef3ad37192c541454fecde2eef;hb=HEAD;hpb=f501ffe2862fd8b4c5793542190e8e0a0d8de667 diff --git a/source/materials/lighting.cpp b/source/materials/lighting.cpp index 6957126b..d8e54006 100644 --- a/source/materials/lighting.cpp +++ b/source/materials/lighting.cpp @@ -18,7 +18,7 @@ Lighting::Lighting() set_fog_color(Color(0.0f, 0.0f, 0.0f, 0.0f)); set_fog_density(0.0f); - for(unsigned i=0; i<7; ++i) + for(unsigned i=0; i<6; ++i) { string base = format("light_sources[%d]", i); shdata.uniform(base+".position", Vector4(0, 0, 1, 0));