Skip to content

Commit

Permalink
Max out alpha when Alpha Hash/Alpha Scissor is used without Alpha Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
marstaik committed Jul 14, 2020
1 parent a826410 commit fcfc78d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions servers/rendering/rasterizer_rd/shaders/scene_high_end.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,11 @@ FRAGMENT_SHADER_CODE
}
#endif // ALPHA_HASH_USED

// If we are not edge antialiasing, we need to remove the output alpha channel from scissor and hash
#if (defined(ALPHA_SCISSOR_USED) || defined(ALPHA_HASH_USED)) && !defined(ALPHA_ANTIALIASING_EDGE_USED)
alpha = 1.0;
#endif

#ifdef ALPHA_ANTIALIASING_EDGE_USED
// If alpha scissor is used, we must further the edge threshold, otherwise we wont get any edge feather
#ifdef ALPHA_SCISSOR_USED
Expand Down

0 comments on commit fcfc78d

Please sign in to comment.