OnlyShadow material: was giving shadow on backfacing faces... should not.
Do note that on boundary cases ("terminator") this isn't well defined.
This feature was meant for simple flat shadow planes, comprende?! :)
This commit is contained in:
Ton Roosendaal
2007-02-14 14:36:39 +00:00
parent 58d6e51cb5
commit a7066480da

View File

@@ -1376,9 +1376,11 @@ static void shade_lamp_loop_only_shadow(ShadeInput *shi, ShadeResult *shr)
continue;
}
inpr= INPR(shi->vn, lv);
if(inpr <= 0.0f)
if(inpr <= 0.0f) {
ir+= 1.0f;
accum+= 1.0f;
continue;
}
lamp_get_shadow(lar, shi, inpr, shadfac, shi->depth);
ir+= 1.0f;