Reformat
This commit is contained in:
parent
451aa48b3a
commit
f2fdc0d084
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user