* Allow for light linking/overrides in volume materials

This commit is contained in:
2008-11-19 23:27:47 +00:00
parent 28da9ad12e
commit 6df8cf842a

View File

@@ -417,12 +417,14 @@ void vol_shade_one_lamp(struct ShadeInput *shi, float *co, LampRen *lar, float *
/* single scattering only for now */
void vol_get_scattering(ShadeInput *shi, float *scatter, float *co, float stepsize, float density)
{
ListBase *lights;
GroupObject *go;
LampRen *lar;
float col[3] = {0.f, 0.f, 0.f};
int i=0;
for(go=R.lights.first; go; go= go->next)
lights= get_lights(shi);
for(go=lights->first; go; go= go->next)
{
float lacol[3] = {0.f, 0.f, 0.f};