Forcing Mesh Normal facing upward

Node-based Shader Editor

Forcing Mesh Normal facing upward

Postby NicolasD » Sat Jan 19, 2019 11:05 am

Hi !

I'm working on a grass shader. I want the normals of the mesh always facing upward whatever rotation is applied on the gameObject.

I guess I want to feed the Y world normal into the local vertex normal but it doesn't work. Any ideas on how to achieve this effect ? :?:
NicolasD
 
Posts: 4
Joined: Wed Dec 05, 2018 3:31 pm

Re: Forcing Mesh Normal facing upward

Postby Amplify_Borba » Tue Jan 22, 2019 11:35 am

Hello, thank you for getting in touch and for your support!

You can accomplish this through the following setup:

Image

Please let us 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: Forcing Mesh Normal facing upward

Postby NicolasD » Sat Feb 02, 2019 12:00 am

Hello,

Thanks a lot ! This setup works perfectly (with normalize check).
NicolasD
 
Posts: 4
Joined: Wed Dec 05, 2018 3:31 pm

Re: Forcing Mesh Normal facing upward

Postby Amplify_Borba » Mon Feb 04, 2019 3:55 pm

Glad to help!

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, the Unity Asset Store thrives on user interaction and direct feedback.
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, thanks!
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 24 guests