diff --git a/README.md b/README.md
index bdf135c..f026a0d 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ Soft masking for uGUI elements in Unity.
[](https://github.com/mob-sakai/SoftMaskForUGUI/releases)
[](https://github.com/mob-sakai/SoftMaskForUGUI/releases)
-
+
[](https://github.com/mob-sakai/SoftMaskForUGUI/blob/upm/LICENSE.txt)
[](http://makeapullrequest.com)
[](https://twitter.com/intent/follow?screen_name=mob_sakai)
@@ -16,7 +16,9 @@ Soft masking for uGUI elements in Unity.
### What's new? [See changelog ](https://github.com/mob-sakai/SoftMaskForUGUI/blob/develop/CHANGELOG.md)
### Do you want to receive notifications for new releases? [Watch this repo ](https://github.com/mob-sakai/SoftMaskForUGUI/subscription)
-### Support me on Patreon! [](https://www.patreon.com/join/2343451?)
+### Support me on Patreon!
+[](https://www.patreon.com/join/2343451?)
+
@@ -82,7 +84,7 @@ By using SoftMask instead of default Mask, rounded edges of UI elements can be e
## Install
-#### Using UnityPackageManager (for Unity 2018.3+)
+#### Using UnityPackageManager (for Unity 2018.3 or later)
Find the manifest.json file in the Packages folder of your project and edit it to look like this:
```js
@@ -96,7 +98,7 @@ Find the manifest.json file in the Packages folder of your project and edit it t
To update the package, change `#{version}` to the target version.
Or, use [UpmGitExtension](https://github.com/mob-sakai/UpmGitExtension).
-#### Using .unitypackage file (for Unity 2017.1+)
+#### Using .unitypackage file (for Unity 2017.1 or later)
Download `*.unitypackage` from [Releases](https://github.com/mob-sakai/SoftMaskForUGUI/releases) and import the package into your Unity project.
Select `Assets > Import Package > Custom Package` from the menu.
@@ -132,7 +134,7 @@ Or, add SoftMaskable components from the inspector of SoftMask component.
##### Requirement
-* Unity 2017+ *(including Unity 2018.x)*
+* Unity 2017 or later *(including Unity 2018.x)*
* No other SDK are required
@@ -144,14 +146,17 @@ Or, add SoftMaskable components from the inspector of SoftMask component.
You can support soft masks in your custom shaders, by adding just 3 lines!
-1. Add `#pragma` and `#include`. `SOFTMASK_EDITOR` is a keyword for editor, not included in the build.
+1. Add `#pragma` and `#include`. `SOFTMASK_EDITOR` is a keyword for editor only, not included in the build.
+If you installed using packageManager, include `Packages/com.coffee.softmask-for-ugui/SoftMask.cginc` instead of.
```
#include "Assets/Coffee/UIExtensions/SoftMaskForUGUI/SoftMask.cginc"
#pragma shader_feature __ SOFTMASK_EDITOR
```
-2. Apply a soft mask in the fragment shader. `IN.vertex` is clip position.
+2. Apply a soft mask in the fragment shader.
+ - `IN.vertex` is clip position
+ - `IN.worldPosition` is world position
```
-color.a *= SoftMask(IN.vertex);
+color.a *= SoftMask(IN.vertex, IN.worldPosition);
```
As an example of implementation, please see [UI-Default-SoftMask.shader](https://raw.githubusercontent.com/mob-sakai/SoftMaskForUGUI/upm/Shaders/Resources/UI-Default-SoftMask.shader).
@@ -313,7 +318,8 @@ UnityEditor.EditorApplication.update += ()
[mob-sakai](https://github.com/mob-sakai)
[](https://twitter.com/intent/follow?screen_name=mob_sakai)
-[](https://www.patreon.com/join/2343451?)
+[](https://www.patreon.com/join/2343451?)
+