Merge pull request #697 from raven02/patch-1

Fix missing character in FF Type-0 in SW T&L
This commit is contained in:
Henrik Rydgård 2013-02-15 03:01:17 -08:00
commit a9fc0c92b3

View File

@ -283,7 +283,7 @@ void Lighter::Light(float colorOut0[4], float colorOut1[4], const float colorIn[
bool doSpecular = (comp != GE_LIGHTCOMP_ONLYDIFFUSE);
bool poweredDiffuse = comp == GE_LIGHTCOMP_BOTHWITHPOWDIFFUSE;
float dot = toLight.Normalized() * norm;
float dot = toLight * norm;
// Clamp dot to zero.
if (dot < 0.0f) dot = 0.0f;