Forcing Mesh Normal facing upward
Posted: 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 ?
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 ?