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!
How to rotate a mask
How to rotate a mask
- Attachments
-
- Cattura.PNG (149.94 KiB) Viewed 2727 times
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: How to rotate a mask
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:

Please let me know if this helps and if you have any further questions.
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:

Please let me know if this helps and if you have any further questions.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Re: How to rotate a mask
Hi Borba, that's exactly what I needed! Thanks alot for your help, that fully solved my issue 
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: How to rotate a mask
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.
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.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!