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
commit f02df0145a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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