From da8610dd1382fcc5875bde82db81c498a9b9e170 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 8 Oct 2012 04:40:57 +0000 Subject: [PATCH] fix a small issue. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4116 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/shaders/glsl/defaultwall.glsl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/shaders/glsl/defaultwall.glsl b/engine/shaders/glsl/defaultwall.glsl index 3b331459..805ec972 100644 --- a/engine/shaders/glsl/defaultwall.glsl +++ b/engine/shaders/glsl/defaultwall.glsl @@ -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];