What are these errors and how do I fix them?
This is the section of the shader that is being weird:
What are these errors and how do I fix them?
This is the section of the shader that is being weird:
My guess is you need to specify an interpolator for all fields in the Input struct.
fixed4 vertexColor : TEXCOORD4;
The HLSL compiler is more strict than the Cg compiler, so you need to initialize the entire struct.
Luckily this is quite easy to solve in Unity.
From the Documentation:
void vert (inout appdata_full v, out Input o) {
UNITY_INITIALIZE_OUTPUT(Input,o);
// ...
}
Thanks, both of you!
RC-1290, I managed to fix it with UNITY_INITIALIZE_OUTPUT. You’re right, that is really easy =-)