I have quite a lot of triangles with coordinates such as below. I want to get the normals of each vertex so I can use it for calculating light.
I have the code for a cube normals and understand that but don't really know how to go about converting(calculating) these to normals. I would just like some direction on where to go from here.
//TRIANGLE 1
0.0f, -0.774f, 0.49f, //6
0.0f, -1.0f, 0.51f, //7
0.156f, -0.982f, 0.47f, //8