Skip to content
Snippets Groups Projects
Commit 744872b4 authored by Ptolemy's avatar Ptolemy
Browse files

SL-12850

parent 4034d57b
No related branches found
No related tags found
No related merge requests found
...@@ -154,8 +154,6 @@ vec3 post_diffuse = color.rgb; ...@@ -154,8 +154,6 @@ vec3 post_diffuse = color.rgb;
} }
vec3 post_spec = color.rgb; vec3 post_spec = color.rgb;
color.rgb = mix(color.rgb, diffuse_srgb.rgb, diffuse_srgb.a);
if (envIntensity > 0.0) if (envIntensity > 0.0)
{ //add environmentmap { //add environmentmap
...@@ -165,7 +163,9 @@ vec3 post_diffuse = color.rgb; ...@@ -165,7 +163,9 @@ vec3 post_diffuse = color.rgb;
color = mix(color.rgb, reflected_color, envIntensity*0.75); // MAGIC NUMBER SL-12574; ALM: On, Quality <= Mid+ color = mix(color.rgb, reflected_color, envIntensity*0.75); // MAGIC NUMBER SL-12574; ALM: On, Quality <= Mid+
#endif #endif
} }
else
color.rgb = mix(color.rgb, diffuse_srgb.rgb, diffuse_srgb.a);
vec3 post_env = color.rgb; vec3 post_env = color.rgb;
if (norm.w < 1) if (norm.w < 1)
......
...@@ -161,8 +161,6 @@ vec3 post_diffuse = color.rgb; ...@@ -161,8 +161,6 @@ vec3 post_diffuse = color.rgb;
} }
vec3 post_spec = color.rgb; vec3 post_spec = color.rgb;
color.rgb = mix(color.rgb, diffuse_srgb.rgb, diffuse_srgb.a);
if (envIntensity > 0.0) if (envIntensity > 0.0)
{ //add environmentmap { //add environmentmap
...@@ -170,9 +168,12 @@ vec3 post_diffuse = color.rgb; ...@@ -170,9 +168,12 @@ vec3 post_diffuse = color.rgb;
vec3 reflected_color = textureCube(environmentMap, env_vec).rgb; vec3 reflected_color = textureCube(environmentMap, env_vec).rgb;
#if !defined(SUNLIGHT_KILL) #if !defined(SUNLIGHT_KILL)
color = mix(color.rgb, reflected_color, envIntensity*0.75); // MAGIC NUMBER SL-12574; ALM: On, Quality >= High color = mix(color.rgb, reflected_color, envIntensity*0.75); // MAGIC NUMBER SL-12574; ALM: On, Quality >= High
//color.rgb = reflected_color.rgb;
#endif #endif
} }
else
color.rgb = mix(color.rgb, diffuse_srgb.rgb, diffuse_srgb.a);
vec3 post_env = color.rgb; vec3 post_env = color.rgb;
if (norm.w < 1) if (norm.w < 1)
......
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