softgpu: Fix lighting with 0 exp.

Broken in #15317.  Fixes Kratos scene demo.
This commit is contained in:
Unknown W. Brackets 2023-01-02 11:42:52 -08:00
parent 0f4f9997fd
commit f1b5cbf993

View file

@ -35,6 +35,9 @@ static inline Vec3f GetLightVec(const u32 lparams[12], int light) {
}
static inline float pspLightPow(float v, float e) {
if (e <= 0.0f) {
return 1.0f;
}
if (v > 0.0f) {
return pow(v, e);
}