I generate the mesh at runtime. There is only a directional light in the scene (positioned correctly). What would cause the faces to look so strange? I want a low-poly look where each triangle is a single shade… no gradients.
edit: the material is just plain yellow
I recalculated the normals after setting the mesh. Has anyone seen similar lighting? This is the only mesh in the scene
I would recommend taking a RenderDoc capture to debug it.
Maybe you are using per-vertex lighting instead of per-pixel lighting, that would also explain it.
So it was the normals…
Each vertex can only have one normal so if two faces share the same vertex and you don’t want them to have the same normal, you have to duplicate the vertex, yes.