why?
Shader "Custom/NoLight" {
Properties{
_MainTex("Base (RGB)", 2D) = "white" {}
}
SubShader{
Tags{ "RenderType" = "Opaque" }
LOD 200
CGPROGRAM
#pragma surface surf NoLight
sampler2D _MainTex;
inline float4 LightingNoLight(SurfaceOutput s, fixed3 lightDir, fixed3 atten)
{
float4 col;
col.rgb = s.Albedo;
col.a = s.Alpha;
return col;
}
struct Input {
float2 uv_MainTex;
};
void surf(Input IN, inout SurfaceOutput o) {
half4 c = tex2D(_MainTex, IN.uv_MainTex);
o.Albedo = c.rgb;
o.Alpha = c.a;
}
ENDCG
}
FallBack "Diffuse"
}