Shader “Custom/texture” {
Properties{
_MainTex (“Albedo (RGB)”, 2D) = “white” {}
}
SubShader {
Pass{
Tags { “RenderType”=“Opaque” }
LOD 200
CGPROGRAM
// Physically based Standard lighting model, and enable shadows on all light types
#pragma vertex vert
#pragma fragment frag
sampler2D _MainTex;
struct Output {
float4 color : COLOR;
};
Output frag(float2 texCoord : TEXCOORD0)
{
Output OUT;
OUT.color = tex2D(_MainTex, texCoord);
return OUT;
}
Output vert()
{
Output OUT;
return OUT;
}
ENDCG
}
}
}
It doesn’t specify a line which it breaks on but I assume it’s on line 24.