-
How do I specify per-vertex normals?
How do I specify per-vertex normals? Do I simply define a normal before each and every single vert, like I would for a set of faces?
-
Advanced Member
Frequent Contributor
-
Advanced Member
Frequent Contributor
You are probably talking about legacy OpenGL. Well, it is a state-machine, and everything set before calling glVertex*() is used for that vertex. If every vertex has a different normal, then yes, you need to call glNormal*() before every glVertex*(). If several verices share same normal, then call glNormal*() just once before those vertices.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules