Page 1 of 1

How to rotate a mask

PostPosted: Wed Dec 05, 2018 11:01 am
by Eksmanen
Hi,

I'm new to Amplify Shader Editor and I've been struggling to find a way to rotate a mask I've done with a Texture Coordinate node. I tried with the Rotator node, as said in another topic where someone wanted to rotate a texture but it doesn't work here since it's not a texture and it will just change its color.
I've attached a screen to show what I'm talking about: my objective here is to tilt it for about 45 degrees and make the stripe diagonal.

Thanks in advance!

Re: How to rotate a mask

PostPosted: Mon Dec 10, 2018 5:04 pm
by Amplify_Borba
Hello, thank you for getting in touch and for your support!

The rotator node expects a UV or another Float2 position value, otherwise it won't handle the data received as expected.

In the example you've shared, you can simply pass the Texture Coordinate value to the Rotator and break the resulting components as follows:

Image

Please let me know if this helps and if you have any further questions.

Re: How to rotate a mask

PostPosted: Tue Dec 11, 2018 11:33 am
by Eksmanen
Hi Borba, that's exactly what I needed! Thanks alot for your help, that fully solved my issue :D

Re: How to rotate a mask

PostPosted: Tue Dec 11, 2018 2:37 pm
by Amplify_Borba
No problem, thank you for letting us know that this solution worked out for you!

Have you had the chance to rate and review Amplify Shader Editor?
It would be awesome if you could share your experience with the Unity community, every bit helps and your feedback is extremely valuable to us.

Feel free to get back in touch if you have further issues or questions, we'll be happy to assist.