Hello I’m trying to complete a shader tutorial. However when I try to compile my code I get a compile error on line 17. I can’t find the difference in the code from the tutorial and my own. Is anyone able to see what I’m doing wrong?
shader "tests/DiffuseSimple"{
subshader{
Tags{ "RenderType" = "Opaque" }
CGPROGRAM
#pragma suface surf Lambert
struct Input
{
float4 color: COLOR;
};
void surf (Input IN,inout SurfaceOutput o){
o.Albedo = IN.color;
}
ENDCG
}
Fallback "Diffuse"
}