Page 1 of 1

UV Channels in Texture Sampler

PostPosted: Wed Aug 09, 2017 3:21 pm
by Ben
Hi,

I'm currently trying to change which uv channel a particular texture sample is using (Channel 2). I'm currently choosing '2' from the drop down list titled 'UV Set' in the texture sampler parameters. However, it still seems to be using channel 1. Currently, I'm just doing a super-simple test where this is the only texture sample. Is this all a bug or am I misunderstanding it on my end?

Thanks!

Ben

Re: UV Channels in Texture Sampler

PostPosted: Wed Aug 09, 2017 4:16 pm
by Amplify_Borba
Hello Ben, thank you for getting in touch!

It should be working as expected, is your object using lightmaps?
Because if so, the UV2 is used for that.

If possible, you can always send us a sample so we can examine the situation on our side.

Looking forward to your reply!

Re: UV Channels in Texture Sampler

PostPosted: Thu Aug 10, 2017 9:29 am
by Ben
Thanks for the quick response!

Image

Here is the setup of a simple test shader. I've unwrapped the second UV set so that the panning white gradient passes through each of the faces separately. Currently, no matter what I set the UV set option to, it still uses UV channel 1. I've also tried copying it to UV channel 3 and trying that one as a test, but this gives the same result.

I've tried swapping the UV channels in the asset import option to see that my UV unwraps are correct and they seem fine. Are there any naming conventions I need to stick to when creating multiple UV unwraps?

Cheers

Re: UV Channels in Texture Sampler

PostPosted: Thu Aug 10, 2017 10:38 am
by Amplify_Borba
Thank you for providing us some additional information!

We ran some tests on our side and everything seems to be working as intended.

I need you to confirm if you've changed the UV Set in the Texture Coordinates node, because it will override the Texture Node's UV Channel due to being connected to that node's UV input.

If that still doesn't solve your issue, would it be possible for you to send us a sample so we can further examine the problem?

Best regards!

Re: UV Channels in Texture Sampler

PostPosted: Thu Aug 10, 2017 4:24 pm
by Ben
Ah, it was the UVCoordinate node that was resetting the UV set to 1!

It works perfectly now, thanks very much for the help!

Re: UV Channels in Texture Sampler

PostPosted: Thu Aug 10, 2017 4:37 pm
by Amplify_Borba
No problem, glad to be of assistance!

Have you had the chance to rate and review the Amplify Shader Editor? It would be awesome if you could share your experience with the Unity community, the Unity Asset Store thrives on user interaction and direct feedback.
Every bit helps, your feedback is extremely valuable to us!

Don't hesitate to get back in touch if you run into any other issues!