mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
softgpu: Fix lighting with 0 exp.
Broken in #15317. Fixes Kratos scene demo.
This commit is contained in:
1 parent
0f4f9997fd
commit
f1b5cbf993
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user