mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
softgpu: Fix lighting with 0 exp.
Broken in #15317. Fixes Kratos scene demo.
This commit is contained in:
parent
0f4f9997fd
commit
f1b5cbf993
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue