diff --git a/src/raytracer/main.c b/src/raytracer/main.c index 366d03a..e07c4d5 100644 --- a/src/raytracer/main.c +++ b/src/raytracer/main.c @@ -232,10 +232,12 @@ colour_t trace_ray(vec3f_t origin, vec3f_t direction, f32 t_min, f32 t_max, f32 b = (f32)(closest_sphere->colour.rgba.b) * light; b = clamp(b, 0.0f, (f32)UINT8_MAX); - return (colour_t){.rgba.r = (u8)r, - .rgba.g = (u8)g, - .rgba.b = (u8)b, - .rgba.a = closest_sphere->colour.rgba.a}; + return (colour_t){ + .rgba.r = (u8)r, + .rgba.g = (u8)g, + .rgba.b = (u8)b, + .rgba.a = closest_sphere->colour.rgba.a, + }; } f32 compute_lighting(vec3f_t position, vec3f_t surface_normal,