Skip to content
Snippets Groups Projects
Commit 48c5e7ae authored by Michael Pohoreski's avatar Michael Pohoreski
Browse files

Merged in SL-12850 (pull request #34)


SL-12850

Approved-by: default avatarDave Houlton <euclid@lindenlab.com>
parents 4034d57b 3792c3c7
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,11 @@ vec3 post_diffuse = color.rgb; ...@@ -165,7 +163,11 @@ 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
...@@ -172,7 +170,11 @@ vec3 post_diffuse = color.rgb; ...@@ -172,7 +170,11 @@ vec3 post_diffuse = color.rgb;
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
#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