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:
parent
3d616ccba8
commit
2ef3c43c5d
Notes:
blender-bot
2023-02-14 08:57:59 +01:00
Referenced by issue #45214, maximum saturation bug
|
@ -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! */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue