- Home /
The question is answered, right answer was accepted
How to get normals per vertex, not per face?
When getting the normals from a mesh, it returns an array of normals of each face, is there a way to do by vertex? I mean, return an array of the normals in order of vertex?
is there an extension from a a mesh vertex? like mesh.vertices[10].normals? or another way to obtain the normal?
EDIT: Ok, wait a second.. mesh.normals is per vertex? why does it return a much larger array than the mesh.vertices array of the same mesh?
Answer by Eric5h5 · Apr 26, 2015 at 10:38 PM
Mesh.normals is per vertex. All vertex attributes are per-vertex (by definition), and all the arrays are therefore the same size.
Thanks, I must have something strange happening in my code.
Follow this Question
Related Questions
About merging meshes and their normals 2 Answers
How can i manually calculate the normals for a terrain mesh? 0 Answers
Vertex smoothing and relief/spec shader options for mobile tech 0 Answers
How are the vertex normals of a mesh calculated in unity? 0 Answers
Problem of color in custom vertex shader 0 Answers