Skip to content
Snippets Groups Projects
Commit 73404da2 authored by David Parks's avatar David Parks
Browse files

Fix for sky being too bright with advanced lighting enabled

parent 5534078e
No related branches found
No related tags found
No related merge requests found
...@@ -321,8 +321,6 @@ void main() ...@@ -321,8 +321,6 @@ void main()
col += spec_contrib; col += spec_contrib;
} }
col = mix(col.rgb, diffuse.rgb, diffuse.a);
if (envIntensity > 0.0) if (envIntensity > 0.0)
{ //add environmentmap { //add environmentmap
vec3 env_vec = env_mat * refnormpersp; vec3 env_vec = env_mat * refnormpersp;
...@@ -332,6 +330,8 @@ void main() ...@@ -332,6 +330,8 @@ void main()
col = atmosLighting(col); col = atmosLighting(col);
col = scaleSoftClip(col); col = scaleSoftClip(col);
col = mix(col.rgb, diffuse.rgb, diffuse.a);
} }
frag_color.rgb = col; frag_color.rgb = col;
......
...@@ -330,8 +330,6 @@ void main() ...@@ -330,8 +330,6 @@ void main()
col += spec_contrib; col += spec_contrib;
} }
col = mix(col, diffuse.rgb, diffuse.a);
if (envIntensity > 0.0) if (envIntensity > 0.0)
{ //add environmentmap { //add environmentmap
vec3 env_vec = env_mat * refnormpersp; vec3 env_vec = env_mat * refnormpersp;
...@@ -341,6 +339,8 @@ void main() ...@@ -341,6 +339,8 @@ void main()
col = atmosLighting(col); col = atmosLighting(col);
col = scaleSoftClip(col); col = scaleSoftClip(col);
col = mix(col.rgb, diffuse.rgb, diffuse.a);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment