Hi,I Modify NGUI built-in Shader “Unlit/Transparent Colored”, Use it to make UISprite gray.
Code:
fixed4 frag (v2f IN) : COLOR
{
fixed4 col = tex2D(_MainTex, IN.texcoord);
col.rgb = dot(col.rgb, fixed3(.222,.707,.071));
return col;
}
Normal use there is no problem,But when UIPanel Use the Clipping function, An Error Has Occurred!
Error : Unlit/Transparent Colored gray shader doesn't have a clipped shader version for 1 clip regions
Or what better way to solve the problem?Thank you very much!