From b64edadb1b3f7c290c8465791aee257fa283883c Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 6 Feb 2013 03:40:10 +0800 Subject: [PATCH] Fix missing menu button and character in The Legend Of Heroes - Trails In The Sky --- GPU/GLES/TransformPipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/TransformPipeline.cpp b/GPU/GLES/TransformPipeline.cpp index fe38edd490..3f3a71bd0d 100644 --- a/GPU/GLES/TransformPipeline.cpp +++ b/GPU/GLES/TransformPipeline.cpp @@ -262,7 +262,7 @@ void Lighter::Light(float colorOut0[4], float colorOut1[4], const float colorIn[ } Color4 lightDiff(gstate_c.lightColor[1][l], 0.0f); - Color4 diff = (lightDiff * *diffuse) * (dot * lightScale); + Color4 diff = (lightDiff * *diffuse) * (max(dot, 0.0f) * lightScale); // Real PSP specular Vec3 toViewer(0,0,1);