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); 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"