mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 22:50:08 -05:00
Fix alpha source
This commit is contained in:
parent
44067be1fc
commit
d25eb746df
|
|
@ -21,7 +21,7 @@ half4 MToonFragment(Varyings input) : SV_Target
|
|||
|
||||
// Alpha Test
|
||||
#if defined(_ALPHATEST_ON)
|
||||
const half rawAlpha = _Color.a;
|
||||
const half rawAlpha = litColor.a;
|
||||
const half tmpAlpha = (rawAlpha - _Cutoff) / max(fwidth(rawAlpha), 0.00001) + 0.5; // Alpha to Coverage
|
||||
clip(tmpAlpha - _Cutoff);
|
||||
const half alpha = 1.0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user