Forcing Mesh Normal facing upward

Node-based Shader Editor
Post Reply
NicolasD
Posts: 4
Joined: Wed Dec 05, 2018 3:31 pm

Forcing Mesh Normal facing upward

Post by NicolasD »

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

Re: Forcing Mesh Normal facing upward

Post by Amplify_Borba »

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!
NicolasD
Posts: 4
Joined: Wed Dec 05, 2018 3:31 pm

Re: Forcing Mesh Normal facing upward

Post by NicolasD »

Hello,

Thanks a lot ! This setup works perfectly (with normalize check).
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Forcing Mesh Normal facing upward

Post by Amplify_Borba »

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