Fix alpha issue when UniUnlit material is opaque.

This commit is contained in:
Masataka SUMI 2019-02-27 22:13:21 +09:00
parent 1b36bee647
commit a728a1a92c

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;
}