Fix T45214: BI render: maximum saturation bug in shadow pass with non-shadow lighting.

In case scene lighting would only have non-shadow light source, shadow intensity
would remain to 'pitch black'...
This commit is contained in:
Bastien Montagne 2015-06-28 10:46:42 +02:00
parent 3d616ccba8
commit 2ef3c43c5d
Notes: blender-bot 2023-02-14 08:57:59 +01:00
Referenced by issue #45214, maximum saturation bug
1 changed files with 3 additions and 0 deletions

View File

@ -1475,6 +1475,9 @@ static void shade_one_light(LampRen *lar, ShadeInput *shi, ShadeResult *shr, int
i*= shadfac[3];
shr->shad[3] = shadfac[3]; /* store this for possible check in troublesome cases */
}
else {
shr->shad[3] = 1.0f; /* No shadow at all! */
}
}
}