I understand that if I add Custom Vertex Stream: UV (TEXCOORD0.xy)
then I can access the UV like this
struct appdata_t
{
float4 texcoord : TEXCOORD0;
UNITY_VERTEX_INPUT_INSTANCE_ID
};
v2f vert (appdata_t v)
{
UNITY_SETUP_INSTANCE_ID(v);
//Access UV
v.texcoord.xy
But when I add other Custom Vertex Stream: stableRandom.xy (TEXCOORD0.w|x)
, I know this suppose to be 2 value, but How can I access TEXCOORD0.w|x
?