Open Tomas-Ha opened 10 months ago
Specifically, the edge looks weird to me. I don't know if this is what it should look like. It has a weird rounding effect.
It looks fine to me -- though the shading looks a bit weird. Can you double-check to make sure the normal is pointing outward?
I am pretty confident that the normals are pointing outwards. When I flip the normal vectors, it removes all the lighting, and it creates this weird shading:
Note that triangle normal should return a normal of length $A$ where $A$ is the triangle area. Did you divide the cross product by 2?
Yes I did, but for the vertex and corner, it is just a normal vector right?
Yes. If you are worried about how the shading looks segmented on top, it is expected for per-vertex normal. I think all looks good.
my per vertex normal code creates a weird output. Is this what is should look like?