When creating a plane and deforming it. The normals do not appear correctly on the faces. See image below.
I have written an exporter that successfully exports the data for vertex positions and vertex colors. I now must get the normals for each tri. Since the data is stored as a loop of four vertices, I assumed that I could check to see if there were four verts in the loop, if so, export two identical normals. And if the loop contained three verts, I could just write the one face normal. When I bent the quad, as in the image above, I assumed that it would be handled and that the quad would be automatically split into two tri polys. My question is, how can I export the face normals such that I would get two normals that are perpendicular to each tri poly.
Many thanks