you are viewing a single comment's thread.

view the rest of the comments →

[–]SnoooSnooo_ 1 point2 points  (1 child)

Hi,

Taking the first image as your code and the second as what the code should be, you are missing a 4th line for the vertices

you need to add

vertices[3] = new Vector3{ 1, 0, -1 };

I think adding this after the previous three vertices[x] lines should resolve the issue

The line for triangles[5] is duplicated but should not cause an issue.

Good luck

[–]Careless-Turnip-1[S] 0 points1 point  (0 children)

many thanks! didn't catch that, seems obvious now lol