NGUI讨论群:333417608
需求
点击怪物头像后,头像高亮。(限制:高亮值只能一样)
方法
复制Unlit - Transparent Colored.shader,进行修改(最后有完整shader)
Shader "Unlit/Transparent Colored"
改为
Shader "Unlit/Transparent Colored (Bright)"
2、
Properties
{
_MainTex ("Base (RGB), Alpha (A)", 2D) = "black" {}
}
改为
Properties
{
_MainTex ("Base (RGB), Alpha (A)", 2D) = "black" {}
_Bright("Brightness", Float) = 2
}
3、
sampler2D _MainTex;
float4 _MainTex_ST;
改为