Circle Mask Shader is mask utility for uGUI Image/RawImage.
Development on
- Unity 2019.3.11f ~
yarn add "umm/circle_mask_shader#^1.0.0"
or simply put a shader file into your project
Steps to attach shader to Image/RawImage component.
- Create material and change shader to
UI/CircleMask
- Attach the material to Image/RawImage GameObject.
- RadiusX : radius of circle mask, x axis
- RadiusY : radius of circle mask, y axis
- AntialiasThreshold : threshold of antialis width
All of the other properties are derived from Unity's UI/Default shader.
See Assets/Examples
Copyright (c) 2019 Takuma Maruyama
Released under the MIT license, see LICENSE.txt