Implement Gourard or Phong shading for TRIANGLE_STRIP primitives
jsocol opened this issue · comments
James Socol commented
Currently the implementation uses flat shading—calculating the surface normal vector and using it at each point on the surface—rather than Gourard or (Blinn–)Phong shading. That's quicker and computationally simple, but it leads to sharp edges when shading adjacent but not coplanar surfaces. Calculating vertex normals for TRIANGLE_STRIP
primitives will enable using Gourard or Phong shading which should be much smoother at the edges.