For for bug 335, lightmap shader broken on some Ati drivers, especially Mac. Thanks to Stuart for the fix.
This commit is contained in:
parent
0d3ce4d707
commit
169bc757b6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue