Skip to content

🔘Circle mask shader for uGUI component

License

Notifications You must be signed in to change notification settings

tk009999/circle_mask_shader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

circle_mask_shader

Circle Mask Shader is mask utility for uGUI Image/RawImage.

demo

Requirement

Development on

  • Unity 2019.3.11f ~

Install

yarn add "umm/circle_mask_shader#^1.0.0"

or simply put a shader file into your project

Usage

Steps to attach shader to Image/RawImage component.

  1. Create material and change shader to UI/CircleMask
  2. Attach the material to Image/RawImage GameObject.

Property

property

  • 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.

Example

See Assets/Examples

License

Copyright (c) 2019 Takuma Maruyama

Released under the MIT license, see LICENSE.txt

About

🔘Circle mask shader for uGUI component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ShaderLab 100.0%