- Home /
Shader compile error on }
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"
}
Comment
Best Answer
Answer by Philipp · Mar 01, 2013 at 09:04 PM
You misspelled "surface" -> suface (line 7)
Ah thank you that did it. (Trough for some reason I can't rate you up).
Your answer
