How to rotate a mask

Node-based Shader Editor
Post Reply
Eksmanen
Posts: 2
Joined: Wed Dec 05, 2018 10:48 am

How to rotate a mask

Post 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!
Attachments
Cattura.PNG
Cattura.PNG (149.94 KiB) Viewed 2727 times
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: How to rotate a mask

Post 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.
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!
Eksmanen
Posts: 2
Joined: Wed Dec 05, 2018 10:48 am

Re: How to rotate a mask

Post by Eksmanen »

Hi Borba, that's exactly what I needed! Thanks alot for your help, that fully solved my issue :D
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: How to rotate a mask

Post 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.
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!
Post Reply