set_fog_color(Color(0.0f, 0.0f, 0.0f, 0.0f));
set_fog_density(0.0f);
- for(unsigned i=0; i<8; ++i)
+ for(unsigned i=0; i<6; ++i)
{
string base = format("light_sources[%d]", i);
shdata.uniform(base+".position", Vector4(0, 0, 1, 0));
shdata.uniform(base+".color", 0.0f, 0.0f, 0.0f);
shdata.uniform(base+".type", 0);
+ shdata.uniform(base+".attenuation", 1.0f, 0.0f, 0.0f);
}
}