How to rotate a mask

Node-based Shader Editor

How to rotate a mask

Postby Eksmanen » Wed Dec 05, 2018 11:01 am

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 (150.43 KiB) Viewed 1923 times
Eksmanen
 
Posts: 2
Joined: Wed Dec 05, 2018 10:48 am

Re: How to rotate a mask

Postby Amplify_Borba » Mon Dec 10, 2018 5:04 pm

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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: How to rotate a mask

Postby Eksmanen » Tue Dec 11, 2018 11:33 am

Hi Borba, that's exactly what I needed! Thanks alot for your help, that fully solved my issue :D
Eksmanen
 
Posts: 2
Joined: Wed Dec 05, 2018 10:48 am

Re: How to rotate a mask

Postby Amplify_Borba » Tue Dec 11, 2018 2:37 pm

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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 8 guests