Shader problem?
I don't know where the mistake is?
I get this error:
Giving up. Parser is hopelessly lost... 9
Syntax error 25
Here is the code:
Shader "Custom/vertexColorShader" {
Properties
{
_Shininess ("Shininess", Range (0.03, 1)) = 0.78125
}
SubShader
{
Tags {"RenderType" = "Opaque"}
CGPROGRAM
#pragma surface surf BlinnPhong vertex:vert
half _Shininess;
struct Input
{
half2 uv_MainTex;
fixed3 vertColors;
};
void vert (inout appdata_full v, out Input o)
{
o.vertColors = v.color.rgb;
o.uv_MainTex = v.texcoord;
}
void surf (Input IN, inout SurfaceOuput o)
{
o.Albedo = IN.vertColors.rgb;
o.Specular = 1;
o.Gloss = _Shininess;
}
ENDCG
}
Fallback "Specular"
}
Code is from this youtube video (~ 05:10): Combining multiple materials into a single draw call
Comment
Best Answer
Answer by helarts · Nov 10, 2015 at 11:26 PM
A "t" is missing line 25:
SurfaceOuput
should be
SurfaceOutput
Your answer
![](https://koobas.hobune.stream/wayback/20220612044413im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to load 3d model(.obj) in device by programmatic. 0 Answers
What are the key names of the textures on the HD ScriptableRenderPipeline in code. 3 Answers
How do I cell shade terrain? 0 Answers
script to assign different texture from a single material having all the textures 0 Answers
Standard Shader Emissive Warning? 2 Answers