From 91393361ba36f389d84c7f77ab87f1fb172a83d7 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Thu, 13 Dec 2018 10:57:45 +0900 Subject: [PATCH 1/2] fix #20; RectMask2D doesn't work on WebGL --- Assets/Coffee/UIExtensions/UIParticle/UIAdditive.shader | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Assets/Coffee/UIExtensions/UIParticle/UIAdditive.shader b/Assets/Coffee/UIExtensions/UIParticle/UIAdditive.shader index bed9fb0..0dfd79b 100644 --- a/Assets/Coffee/UIExtensions/UIParticle/UIAdditive.shader +++ b/Assets/Coffee/UIExtensions/UIParticle/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); From aba64e3488643014216e29fede5d466b6b8dee42 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Thu, 13 Dec 2018 11:01:38 +0900 Subject: [PATCH 2/2] update change log --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 872748e..b57f9fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v1.2.1](https://github.com/mob-sakai/ParticleEffectForUGUI/tree/v1.2.1) (2018-12-13) + +[Full Changelog](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v1.2.0...v1.2.1) + +**Fixed bugs:** + +- Rect mask 2D doesn't work on WebGL [\#20](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/20) + ## [v1.2.0](https://github.com/mob-sakai/ParticleEffectForUGUI/tree/v1.2.0) (2018-12-13) [Full Changelog](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v1.1.0...v1.2.0) diff --git a/package.json b/package.json index 07e3bd1..f2f303f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ParticleEffectForUGUI", - "version": "1.2.0", + "version": "1.2.1", "repository": { "type": "git", "url": "git+https://github.com/mob-sakai/ParticleEffectForUGUI.git"