summaryrefslogtreecommitdiff
path: root/src/maths/primitives.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-16 22:57:25 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-16 22:58:05 +1000
commit9c8ef3cb95cff78bdc9d527b89ba30cf616e18c0 (patch)
tree88a20b91dd231f5213227702b87dc0a6b5651aea /src/maths/primitives.c
parentdd1e090e1416f21537637dac0b4fda20d322cb56 (diff)
Fixed!
Diffstat (limited to 'src/maths/primitives.c')
-rw-r--r--src/maths/primitives.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/maths/primitives.c b/src/maths/primitives.c
index 327159d..46175fd 100644
--- a/src/maths/primitives.c
+++ b/src/maths/primitives.c
@@ -224,14 +224,14 @@ geometry_data geo_create_uvsphere(f32 radius, u32 north_south_lines, u32 east_we
u32 i1 = next_ring_start + j;
u32 i2 = ring_start + (j + 1) % north_south_lines;
u32 i3 = next_ring_start + (j + 1) % north_south_lines;
- push_triangle(indices, i0, i1, i2);
+ push_triangle(indices, i0, i2, i1);
/* TRACE("Push triangle (%.2f %.2f %.2f)->(%.2f %.2f %.2f)->(%.2f %.2f %.2f)\n", */
/* vertices->data[i0].static_3d.position.x, vertices->data[i0].static_3d.position.y, */
/* vertices->data[i0].static_3d.position.z, vertices->data[i1].static_3d.position.x, */
/* vertices->data[i1].static_3d.position.y, vertices->data[i1].static_3d.position.z, */
/* vertices->data[i2].static_3d.position.x, vertices->data[i2].static_3d.position.y, */
/* vertices->data[i2].static_3d.position.z); */
- push_triangle(indices, i2, i1, i3);
+ push_triangle(indices, i1, i2, i3);
}
}