Skip to content

Commit

Permalink
softgpu: Fix lighting with 0 exp.
Browse files Browse the repository at this point in the history
Broken in hrydgard#15317.  Fixes Kratos scene demo.
  • Loading branch information
unknownbrackets committed Jan 2, 2023
1 parent 0f4f999 commit f1b5cbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GPU/Software/Lighting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f1b5cbf

Please sign in to comment.