Page 1 of 1

Forcing Mesh Normal facing upward

PostPosted: Sat Jan 19, 2019 11:05 am
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 ? :?:

Re: Forcing Mesh Normal facing upward

PostPosted: Tue Jan 22, 2019 11:35 am
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.

Re: Forcing Mesh Normal facing upward

PostPosted: Sat Feb 02, 2019 12:00 am
by NicolasD
Hello,

Thanks a lot ! This setup works perfectly (with normalize check).

Re: Forcing Mesh Normal facing upward

PostPosted: Mon Feb 04, 2019 3:55 pm
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!