Question by
lonewalker07 · Feb 11, 2021 at 05:08 PM ·
shadershaderlabcg
Parse error: syntax error, unexpected TVAL_ID, expecting TVAL_STRING
I have just begun shader writing , and this was my first shader in unity but the following error is coming
Parse error: syntax error, unexpected TVAL_ID, expecting TVAL_STRING
My Source Code
shader holistic/helloshader{
Properties {
_myColour ("Example Colour", Colour) = (1,1,1,1)
}
SubShader {
CGPROGRAM
#pragma surface surf Lambert
struct Input {
float2 uvMainTex ;
};
fixed4 _myColour;
void surf(Input IN, inout SurfaceOutput o){
o.Albedo = _myColour.rgb ;
}
ENDCG
}
Fallback "Diffuse"
}
Comment