Skip to content

Commit

Permalink
Merge pull request #6082 from raven02/patch-55
Browse files Browse the repository at this point in the history
Add missing lcutoff and lconv
  • Loading branch information
hrydgard committed May 14, 2014
2 parents 2d12eb3 + 9db47b9 commit 642bb37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GPU/Common/TransformCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -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];
}
}
}

0 comments on commit 642bb37

Please sign in to comment.