From c94c3930af8c81568be50bdfaaac321b99e296d7 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 9 Mar 2020 18:34:24 +0100 Subject: Colors are floats now --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index f35ae0b..cd66dee 100644 --- a/main.c +++ b/main.c @@ -16,7 +16,7 @@ int main() space_t s; s.objects = NULL; s.lights = NULL; - color_set(&s.ambient, 25, 25, 25); + color_set(&s.ambient, 0.09, 0.09, 0.09); // Currently havin issues with white background // color_set(&s.back, 255, 255, 255); color_set(&s.back, 0, 0, 0); @@ -55,7 +55,7 @@ int main() add_sphere(&s, vector_set(NULL, 8, 8, 3), 2, &m2); add_plane(&s, vector_set(NULL, 0, 0, 2), vector_set(NULL, 0, 0, 1), &mpl); //add_plane(&s, vector_set(NULL, 0, -20, 0), vector_set(NULL, 0, 1, 0), &mpl); - add_light(&s, vector_set(NULL, 20, 10, 30), color_set(NULL, 255, 255, 255), color_set(NULL, 150, 150, 150)); + add_light(&s, vector_set(NULL, 20, 10, 30), color_set(NULL, 1, 1, 1), color_set(NULL, 0.5, 0.5, 0.5)); //add_light(&s, vector_set(NULL, 0, 10, 20), color_set(NULL, 255, 255, 255), color_set(NULL, 150, 150, 150)); pgm_write_header(stdout, TESTW, TESTH); -- cgit v1.2.3