mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 21:14:19 -05:00
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:
commit
f02df0145a
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user