I have an error in a shader that I was learning on about. I wanted to recreate a Blinn-Phong shader. but I have This problem.
Code:
Shader "Compendium/BasicBlinn"
{
Properties
{
Color("Color", Color) = (1,1,1,1)
SpecularColor("Spec Color", Color) = (1,1,1,1)
Specular("Specu;ar", Range(0,1)) = 0.5
Gloss("Gloss", Range(0,1)) = 0.5
}
SubShader
{
Tags
{
"Queue" = "Geometry"
}
CGPROGRAM
#pragma surface surf BlinnPhong
float4 Color;
half Specular;
fixed Gloss;
struct Input
{
float2 uv_MainTex;
};
void surf(Input IN, inout SurfaceOutput o)
{
o.Albedo = Color.rgb;
o.Specular = Specular;
o.Gloss = Gloss;
}
ENDCG
}
FallBack "Diffuse"
}
The error is the following:
Shader error in 'BasicBlinn': Parse error: syntax error, unexpected TOK_COLOR, expecting TVAL_ID or TVAL_VARREF at line 5
line 5 being Color(“Color”, Color) = (1,1,1,1)
I don’t know how to solve this because I’m new to Shading, but if someone could tell me what is wrong here?