2 uniform sampler2D lightmap;
6 vec3 lumel = texture2D(lightmap, gl_TexCoord[1].st).rgb;
8 vec3 diffuse = gl_FrontMaterial.diffuse.rgb * lumel * 1.8;
10 vec3 ambient = gl_LightModel.ambient.rgb * gl_FrontMaterial.diffuse.rgb;
11 gl_FragColor.rgb = ambient + diffuse;
12 gl_FragColor.a = gl_FrontMaterial.diffuse.a;