Permalink
Browse files

Do not discard transparent specular-mapped fragments.

  • Loading branch information...
1 parent 39721e5 commit 95f56f040a6189afdf6fb42b6b75cc14a270cbae @Shyotl Shyotl committed Jun 18, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 indra/newview/app_settings/shaders/class1/deferred/materialF.glsl
@@ -537,10 +537,12 @@ void main()
#endif
#if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_BLEND)
+ #if (HAS_SPECULAR_MAP == false)
if(diffcol.a < .01)
{
discard;
}
+ #endif
vec3 gamma_diff = diffcol.rgb;
diffcol.rgb = srgb_to_linear(diffcol.rgb);
#endif

0 comments on commit 95f56f0

Please sign in to comment.