Flat shading in LibGDX
I am currently working on a simple game and I would like to my terrain to be flat shaded. My terrain currently looks like the following: As you can see the colours blend toghether depending on the vertice colours. I would love for my end product to resemble the following: So I was wondering how can I achieve this? What are the steps to go from gouraud shading to flat shading? Here is how I go about creating the vertices I give to my mesh: public TerrainChunk() { buildHeightmap(); buildIndices(); buildVertices(); calcNormals(indices, vertices); } public void buildHeightmap() {...} private void