0
Declined

Add UV sets

Colin Knueppel 11 years ago updated by Freya Holmér (Developer) 11 years ago 2
I found a Unity Answer post that tells how to use more than 2 UV sets.
http://answers.unity3d.com/questions...e-uv-sets.html
Could we get this into Shader Forge?


From the post:

structInput{
float2 uv_MainTex:Texcoord0;// use UV set 1
float2 uv_DetailTex:Texcoord2;// use UV set 3
float2 uv_DecalTex:Texcoord3;// use uv set 4
}

fixed4 tex = tex2D(_MainTex, IN.uv_MainTex);
fixed4 dtl = tex2D(_DetailTex, IN.uv_DetailTex);
fixed4 dcl = tex2D(_DecalTex, IN.uv_DecalTex);

Answer

Answer
Declined
I'm pretty sure that won't work regardless, like Aras replied in that post
Under review
I'm pretty sure that won't work regardless, like Aras replied in that post. I can try it later though
Looking at documentation, I fear that maybe the writer was getting the texcoord thing confused. I'm hopeful that someone can figure out how to get more UV sets in, though. Even if it means grabbing them from a copies of the model 2 UV sets at a time.
Answer
Declined
I'm pretty sure that won't work regardless, like Aras replied in that post
You could use a texture to compose UVs, for example you have an additional UV set in your 3d App and bake 2 gradients from the additional UVset to a texture, plug the 2 channels into the UVs of that texture into your UV Input of the Texture that you like to use the composed UVs. Its a strange hack and far from perfect but it works. I use it sometimes for various purposes.