Take out angular atten on additive too.
meow-7.2.2
Graham Linden 2019-06-28 11:07:44 -07:00
parent c169707993
commit 4e796ce898
2 changed files with 2 additions and 6 deletions

View File

@ -176,9 +176,7 @@ vec3 post_env = color.rgb;
if (norm.w < 1)
{
#if !defined(SUNLIGHT_KILL)
//additive *= spec.a;
float additive_angular_atten = max(0.0, dot(light_dir, normalize(pos.xyz)));
color = atmosFragLighting(color, additive * additive_angular_atten, atten);
color = atmosFragLighting(color, additive, atten);
color = scaleSoftClipFrag(color);
#endif
}

View File

@ -185,9 +185,7 @@ vec3 post_env = color.rgb;
{
#if !defined(SUNLIGHT_KILL)
vec3 p = normalize(pos.xyz);
//additive *= spec.a;
float additive_angular_atten = max(0.0, dot(light_dir.xyz, p.xyz));
color = atmosFragLighting(color, additive * additive_angular_atten, atten);
color = atmosFragLighting(color, additive, atten);
color = scaleSoftClipFrag(color);
#endif
}