Skip to content

Commit

Permalink
Fixed shadow fade and zfar computation as it was breaking shadow bord…
Browse files Browse the repository at this point in the history
…er filtering.
  • Loading branch information
Nehon committed Nov 20, 2016
1 parent 69d8e5d commit a71fb28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void main(){
#endif

#ifdef FADE
shadow = max(0.0,mix(shadow,1.0,(shadowPosition - m_FadeInfo.x) * m_FadeInfo.y));
shadow = max(0.0, mix(shadow, 1.0, max(0.0, (shadowPosition - m_FadeInfo.x) * m_FadeInfo.y)));
#endif

shadow = shadow * m_ShadowIntensity + (1.0 - m_ShadowIntensity);
Expand Down

0 comments on commit a71fb28

Please sign in to comment.