From dd1e090e1416f21537637dac0b4fda20d322cb56 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 16 Jun 2024 22:40:18 +1000 Subject: store ubo binding points inside the gpu_buffer data --- src/maths/primitives.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/maths/primitives.c') 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); } -- cgit v1.2.3-70-g09d2