From 79217d0100a29d71066194d34f64ff0147f729bf Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Thu, 13 Dec 2018 10:57:45 +0900 Subject: [PATCH] fix #20; RectMask2D doesn't work on WebGL --- UIAdditive.shader | 4 ---- 1 file changed, 4 deletions(-) diff --git a/UIAdditive.shader b/UIAdditive.shader index bed9fb0..0dfd79b 100644 --- a/UIAdditive.shader +++ b/UIAdditive.shader @@ -54,7 +54,6 @@ #include "UnityCG.cginc" #include "UnityUI.cginc" - #pragma multi_compile __ UNITY_UI_CLIP_RECT #pragma multi_compile __ UNITY_UI_ALPHACLIP struct appdata_t @@ -97,10 +96,7 @@ fixed4 frag(v2f IN) : SV_Target { half4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color; - - #ifdef UNITY_UI_CLIP_RECT color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); - #endif #ifdef UNITY_UI_ALPHACLIP clip (color.a - 0.001);