appdata_full from UnityCG.cginc in URP

Wonderong if someone could please help me, What is the equivalent of appdata_full from UnityCG.cginc in URP
struct appdata_full {
float4 vertex : POSITION;
float4 tangent : TANGENT;
float3 normal : NORMAL;
float4 texcoord : TEXCOORD0;
float4 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
float4 texcoord3 : TEXCOORD3;
fixed4 color : COLOR;
UNITY_VERTEX_INPUT_INSTANCE_ID
};

If you’re asking “what’s the equivalent preexisting vertex shader input struct to appdata_full that I can use without having to define it in my shader”, the answer seems to be there isn’t one. Every shader appears to define their own unique struct.

If the question is “what’s the equivalent vertex shader input struct that has all of the same data as appdata_full”, well then what you copy/pasted into your post is it. Paste that into your shader file.

1 Like