aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-03-09 18:34:24 +0100
committerJulian T <julian@jtle.dk>2020-03-09 18:34:24 +0100
commitc94c3930af8c81568be50bdfaaac321b99e296d7 (patch)
treef776896e941b64076bdd067829a6ca9323cc67f7 /main.c
parent7837a28251bc3b326423ba40ccac0c8ffe23f968 (diff)
Colors are floats now
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
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);