diff --git a/Editor/Targets/Lit/FragmentForward.hlsl b/Editor/Targets/Lit/FragmentForward.hlsl index 05d6bab..15e2b86 100644 --- a/Editor/Targets/Lit/FragmentForward.hlsl +++ b/Editor/Targets/Lit/FragmentForward.hlsl @@ -245,6 +245,10 @@ half4 frag(Varyings varyings) : SV_Target half4 color = COLOR_IMPL(surf, fragData, giInput, giOutput); + #ifdef _ALPHATEST_ON + color.a = 1.0; + #endif + UNITY_APPLY_FOG(varyings.fogCoord, color); return color; diff --git a/Editor/Targets/Unlit/FragmentForward.hlsl b/Editor/Targets/Unlit/FragmentForward.hlsl index 0b59f58..0bdef9b 100644 --- a/Editor/Targets/Unlit/FragmentForward.hlsl +++ b/Editor/Targets/Unlit/FragmentForward.hlsl @@ -28,6 +28,10 @@ half4 frag(Varyings varyings) : SV_Target col.a = 1.0; #endif + #ifdef _ALPHATEST_ON + col.a = 1.0; + #endif + UNITY_APPLY_FOG(varyings.fogCoord, col); return col; diff --git a/Shaders/Lit.graphlit b/Shaders/Lit.graphlit index 09f6aeb..3c39f44 100644 --- a/Shaders/Lit.graphlit +++ b/Shaders/Lit.graphlit @@ -241,7 +241,7 @@ "defaultPreviewState": 1, "customEditor": "", "fallback": "", - "include": "#ifndef _NORMALMAP\n#define _NORMAL_DROPOFF_OFF\n#endif\n\n// enable monosh\n//#define _BAKERY_MONOSH", + "include": "//#define _BAKERY_MONOSH", "outlinePass": 0, "stencil": false, "vrcFallbackTags": { diff --git a/package.json b/package.json index 3b85df8..25fc347 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.z3y.graphlit", - "version": "1.0.14", + "version": "1.0.15", "unity": "2022.3", "displayName": "Graphlit", "hideInEditor": false,