荒天帝的靓图
话不多说,上shader
Shader "Custom_Shader/ui_outline"
{
Properties
{
_MainTex("Sprite Texture", 2D) = "white" {}
_OutlineWidth("Outline Width", float) = 1
_OutlineColor("Outline Color", Color) = (1,1,1,1)
}
SubShader
{
Blend SrcAlpha OneMinusSrcAlpha
Pass