mob-sakai / SoftMaskForUGUI

Enhance Unity UI (uGUI) with advanced soft-masking features to create more visually appealing effects!
https://github.com/mob-sakai/SoftMaskForUGUI
MIT License
2k stars 262 forks source link

[v1] Example: An shader implementation for SVG #58

Closed mob-sakai closed 1 month ago

mob-sakai commented 5 years ago

How to play

  1. Find the manifest.json file in Packages folder of your project and edit it to look like this:
    {
    "dependencies": {
    "com.coffee.softmask-for-ugui": "https://github.com/mob-sakai/SoftMaskForUGUI.git#0.8.1",
    "com.unity.vectorgraphics": "1.0.0-preview.28",
    ...
    },
    }
  2. Unzip and import the following zip file:
    SoftMask_Demo_SVG.unitypackage.zip
  3. Open SoftMask_Demo_SVG.scene and play
  4. Enjoy!
mob-sakai commented 5 years ago

The shader file is here: https://gist.github.com/mob-sakai/9514d1e732f597ca77422b15882a1b8d