mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
Add missing lcutoff and lconv
This commit is contained in:
1 parent
2d12eb3394
commit
9db47b9908
1 file changed
+3
-1
@@ -47,6 +47,8 @@ Lighter::Lighter(int vertType) {
|
||||
materialUpdate_ = hasColor ? (gstate.materialupdate & 7) : 0;
|
||||
|
||||
for (int l = 0; l < 4; l++) {
|
||||
lcutoff[l] = getFloat24(gstate.lcutoff[l]);
|
||||
lconv[l] = getFloat24(gstate.lconv[l]);
|
||||
int i = l * 3;
|
||||
if (gstate.isLightChanEnabled(l)) {
|
||||
lpos[i] = getFloat24(gstate.lpos[i]);
|
||||
@@ -178,4 +180,4 @@ void Lighter::Light(float colorOut0[4], float colorOut1[4], const float colorIn[
|
||||
colorOut0[i] = lightSum0[i] > 1.0f ? 1.0f : lightSum0[i];
|
||||
colorOut1[i] = lightSum1[i] > 1.0f ? 1.0f : lightSum1[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user