From 9db47b9908e4df516ef1590cd2a25688555945ed Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 14 May 2014 23:00:28 +0800 Subject: [PATCH] Add missing lcutoff and lconv --- GPU/Common/TransformCommon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPU/Common/TransformCommon.cpp b/GPU/Common/TransformCommon.cpp index 4d33f154ac..cfc2fe75b6 100644 --- a/GPU/Common/TransformCommon.cpp +++ b/GPU/Common/TransformCommon.cpp @@ -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]; } -} \ No newline at end of file +}