From 7359b43f9fde19b6911b3ed95c8b31ea5e6a689b Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 26 Mar 2020 15:43:23 +0100 Subject: Started work on area light, cleaned up ray.c and clamped colors --- pgm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pgm.h') diff --git a/pgm.h b/pgm.h index 5a6621d..91c756b 100644 --- a/pgm.h +++ b/pgm.h @@ -9,6 +9,8 @@ typedef struct { COORD_T r, g, b; } color_t; +void color_clamp(color_t *c); + color_t *color_set(color_t *c, COORD_T r, COORD_T g, COORD_T b); color_t *color_scale(color_t *dest, color_t *a, COORD_T b); color_t *color_add(color_t *dest, color_t *a, color_t *b); -- cgit v1.2.3