fix a small issue.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4116 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-10-08 04:40:57 +00:00
parent 63994793c9
commit da8610dd13

View file

@ -101,10 +101,10 @@ void main ()
vec4 lightmaps;
#ifdef DELUXE
vec3 norm = texture2D(s_t2, tc).rgb;
lightmaps = texture2D(s_t1, lm ) * e_lmscale[0] * dot(norm, texture2D(s_t3, lm ));
lightmaps += texture2D(s_t5, lm2) * e_lmscale[1] * dot(norm, texture2D(s_t8, lm2));
lightmaps += texture2D(s_t6, lm3) * e_lmscale[2] * dot(norm, texture2D(s_t9, lm3));
lightmaps += texture2D(s_t7, lm4) * e_lmscale[3] * dot(norm, texture2D(s_t10,lm4));
lightmaps = texture2D(s_t1, lm ) * e_lmscale[0] * dot(norm, texture2D(s_t3, lm ).rgb);
lightmaps += texture2D(s_t5, lm2) * e_lmscale[1] * dot(norm, texture2D(s_t8, lm2).rgb);
lightmaps += texture2D(s_t6, lm3) * e_lmscale[2] * dot(norm, texture2D(s_t9, lm3).rgb);
lightmaps += texture2D(s_t7, lm4) * e_lmscale[3] * dot(norm, texture2D(s_t10,lm4).rgb);
#else
lightmaps = texture2D(s_t1, lm ) * e_lmscale[0];
lightmaps += texture2D(s_t5, lm2) * e_lmscale[1];