Fix for sky being too bright with advanced lighting enabled

meow-7.2.2
Dave Parks 2013-05-01 16:48:27 -05:00
parent 5534078e9d
commit 73404da266
2 changed files with 4 additions and 4 deletions

View File

@ -321,8 +321,6 @@ void main()
col += spec_contrib;
}
col = mix(col.rgb, diffuse.rgb, diffuse.a);
if (envIntensity > 0.0)
{ //add environmentmap
vec3 env_vec = env_mat * refnormpersp;
@ -332,6 +330,8 @@ void main()
col = atmosLighting(col);
col = scaleSoftClip(col);
col = mix(col.rgb, diffuse.rgb, diffuse.a);
}
frag_color.rgb = col;

View File

@ -330,8 +330,6 @@ void main()
col += spec_contrib;
}
col = mix(col, diffuse.rgb, diffuse.a);
if (envIntensity > 0.0)
{ //add environmentmap
vec3 env_vec = env_mat * refnormpersp;
@ -341,6 +339,8 @@ void main()
col = atmosLighting(col);
col = scaleSoftClip(col);
col = mix(col.rgb, diffuse.rgb, diffuse.a);
}