hi all!
I need to have at least 6 texture uv in my shader, i’m trying to modify the default shaders: In UnityStandardInput.cginc I’ve modified VertexInput like this:
struct VertexInput
{
float4 vertex : POSITION;
fixed4 vColor : COLOR;
half3 normal : NORMAL;
float2 uv0 : TEXCOORD0;
float2 uv1 : TEXCOORD1;
float2 uv2 : TEXCOORD2;
float2 uv3 : TEXCOORD3;
float2 uv4 : TEXCOORD4;
//float2 uv5 : TEXCOORD5;
#ifdef _TANGENT_TO_WORLD
half4 tangent : TANGENT;
#endif
};
but when the shader compile, gives me this error:
any ideas?
my shader may accept uv from 0 to 5, but maybe that in the mesh there’s only 2 uv per vertex…
thanks in advance!
p.s. at the moment the UnityStandardCore.cginc is not modified…