summaryrefslogtreecommitdiff
path: root/src/maths/primitives.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-16 22:40:18 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-16 22:40:18 +1000
commitdd1e090e1416f21537637dac0b4fda20d322cb56 (patch)
tree3900c679c1cc42946f2a5f3335e390b53a3bcc48 /src/maths/primitives.c
parent3c9d08717cd129c1576ea91e5bd4b7b8e0af9885 (diff)
store ubo binding points inside the gpu_buffer data
Diffstat (limited to 'src/maths/primitives.c')
-rw-r--r--src/maths/primitives.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/maths/primitives.c b/src/maths/primitives.c
index 5d9c70f..327159d 100644
--- a/src/maths/primitives.c
+++ b/src/maths/primitives.c
@@ -179,8 +179,9 @@ geometry_data geo_create_uvsphere(f32 radius, u32 north_south_lines, u32 east_we
// assert(d == radius); // all points on the sphere should be 'radius' away from the origin
vertex v = { .static_3d = {
.position = position,
- .normal = vec3_normalise(position), // normal vector on sphere is same as position
- .tex_coords = vec2(0, 0) // TODO
+ .normal =
+ vec3_normalise(position), // normal vector on sphere is same as position
+ .tex_coords = vec2(0, 0) // TODO
} };
vertex_darray_push(vertices, v);
}