Skip to content

Commit

Permalink
Merge pull request virtual-cast#31 from virtual-cast/il-m-yamagishi-p…
Browse files Browse the repository at this point in the history
…atch-1

fix(Fragment): Fix transparency issue when alpha test
  • Loading branch information
il-m-yamagishi committed Jun 20, 2019
2 parents 9fd7256 + 9acc246 commit a092a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shaders/mtoon.frag
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ vec4 computeMToonDiffuseLighting(vec3 worldView, vec3 worldNormal, vec2 mainUv,

float _alpha = 1.0;

#ifdef ALPHABLEND
#if defined(ALPHABLEND) || defined(ALPHATEST)
_alpha = mix(_lit.a, _lit.a * vOutlineColor.a, isOutline);
#endif

Expand Down

0 comments on commit a092a36

Please sign in to comment.