Fix diffuse boost which we don't want underwater, but do want in other cases.

meow-7.2.2
Graham Linden 2019-05-07 15:09:30 -07:00
parent c61f73321d
commit 570bbdb779
2 changed files with 8 additions and 0 deletions

View File

@ -153,6 +153,10 @@ vec3 post_diffuse = color.rgb;
vec3 post_spec = color.rgb;
#ifndef WATER_FOG
color.rgb += diffuse_srgb.a * diffuse_srgb.rgb;
#endif
if (envIntensity > 0.0)
{ //add environmentmap
vec3 env_vec = env_mat * refnormpersp;

View File

@ -163,6 +163,10 @@ vec3 post_diffuse = color.rgb;
vec3 post_spec = color.rgb;
#ifndef WATER_FOG
color.rgb += diffuse_srgb.a * diffuse_srgb.rgb;
#endif
if (envIntensity > 0.0)
{ //add environmentmap
vec3 env_vec = env_mat * refnormpersp;