1
0
Fork 0

For for bug 335, lightmap shader broken on some Ati drivers, especially Mac. Thanks to Stuart for the fix.

This commit is contained in:
James Turner 2011-07-03 20:21:09 +01:00
parent 0d3ce4d707
commit 169bc757b6

View file

@ -55,7 +55,7 @@ void main()
fragColor = color * texel + specular;
// The lightmap function
if ( condition >= 1 ) {
if ( condition >= 1.0 ) {
vec3 lightmapTexel = texture2D(lightmap_texture, gl_TexCoord[0].st).rgb * lightmap_factor;
fragColor.rgb = max(fragColor.rgb, lightmapTexel * gl_FrontMaterial.diffuse.rgb * texel.rgb);
}