Merge pull request #204 from dwango/santarh/fix_uniunlit_alpha_issue_when_opaque

Fix alpha issue when UniUnlit material is opaque.
This commit is contained in:
ousttrue
2019-02-28 03:27:37 +09:00
committed by GitHub

View File

@@ -86,6 +86,10 @@
clip(col.a - _Cutoff);
#endif
#if !defined(_ALPHATEST_ON) && !defined(_ALPHABLEND_ON)
col.a = 1.0;
#endif
UNITY_APPLY_FOG(i.fogCoord, col);
return col;
}