Update readme
parent
59a4e49a70
commit
75f3f16ab0
24
README.md
24
README.md
|
@ -8,7 +8,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/master/LICENSE.txt)
|
||||
[](https://github.com/mob-sakai/SoftMaskForUGUI/blob/upm/LICENSE.txt)
|
||||
[](http://makeapullrequest.com)
|
||||
[](https://twitter.com/intent/follow?screen_name=mob_sakai)
|
||||
|
||||
|
@ -58,9 +58,6 @@ By using SoftMask instead of default Mask, rounded edges of UI elements can be e
|
|||
* Support TextMeshPro.
|
||||

|
||||
|
||||
#### Known issues
|
||||
|
||||
* SceneView does not display SoftMask properly. It is displayed like Mask. ([By design](#why-is-not-it-displayed-properly-in-sceneview))
|
||||
|
||||
#### Components
|
||||
|
||||
|
@ -151,20 +148,7 @@ You can support soft masks in your custom shaders, by adding just 3 lines!
|
|||
color.a *= SoftMask(IN.vertex);
|
||||
```
|
||||
|
||||
As an example of implementation, please see [UI-Default-SoftMask.shader](https://raw.githubusercontent.com/mob-sakai/SoftMaskForUGUI/master/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Resources/UI-Default-SoftMask.shader).
|
||||
|
||||
|
||||
<br><br>
|
||||
#### Why is not it displayed properly in SceneView?
|
||||
|
||||
SoftMask calculates the final alpha value based on the value of each channel of the soft mask buffer.
|
||||
The soft mask buffer is a buffer generated based on GameView's screen space.
|
||||
|
||||
Since SceneView has a view matrix and a projection matrix independent of GameView, the SceneView's camera can not refer to the soft mask buffer properly.
|
||||
|
||||
Therefore, in GameView, it is displayed properly. but in ScreenView, it is displayed like default Mask.
|
||||
|
||||

|
||||
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).
|
||||
|
||||
|
||||
<br><br>
|
||||
|
@ -247,7 +231,7 @@ static void ConvertToMask(MenuCommand command)
|
|||
}
|
||||
```
|
||||
|
||||
For details, please see [SoftMaskEditor.cs](https://raw.githubusercontent.com/mob-sakai/SoftMaskForUGUI/master/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/Editor/SoftMaskEditor.cs).
|
||||
For details, please see [SoftMaskEditor.cs](https://raw.githubusercontent.com/mob-sakai/SoftMaskForUGUI/upm/Scripts/Editor/SoftMaskEditor.cs).
|
||||
|
||||
|
||||
<br><br>
|
||||
|
@ -333,4 +317,4 @@ UnityEditor.EditorApplication.update += ()
|
|||
* Releases : https://github.com/mob-sakai/SoftMaskForUGUI/releases
|
||||
* Issue tracker : https://github.com/mob-sakai/SoftMaskForUGUI/issues
|
||||
* Current project : https://github.com/mob-sakai/SoftMaskForUGUI/projects/1
|
||||
* Change log : https://github.com/mob-sakai/SoftMaskForUGUI/blob/master/CHANGELOG.md
|
||||
* Change log : https://github.com/mob-sakai/SoftMaskForUGUI/blob/upm/CHANGELOG.md
|
||||
|
|
Loading…
Reference in New Issue