diff options
author | Julian T <julian@jtle.dk> | 2020-03-26 15:43:23 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-03-26 15:43:23 +0100 |
commit | 7359b43f9fde19b6911b3ed95c8b31ea5e6a689b (patch) | |
tree | fb8c601cb9cc5d96e1a049c25082d026c89de1fa /pgm.h | |
parent | 7a48ecd394f7b3b8f0f6e18606f681ffac3e3a7c (diff) |
Started work on area light, cleaned up ray.c and clamped colors
Diffstat (limited to 'pgm.h')
-rw-r--r-- | pgm.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |