From 238d94008b50f960831b773760e94a316c7212c0 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 14 Feb 2017 00:48:11 -0800 Subject: ray: increase highlight exponent on shiny sphere The highlight on the little green sphere was white-washing the entire thing due to its high specular reflection value. This produces more reasonable results... --- src/modules/ray/ray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ray/ray.c b/src/modules/ray/ray.c index ad8a06b..12d4bc8 100644 --- a/src/modules/ray/ray.c +++ b/src/modules/ray/ray.c @@ -72,7 +72,7 @@ static void ray(fb_fragment_t *fragment) .color = { .x = 0.0, .y = 1.0, .z = 0.0 }, .diffuse = 0.95f, .specular = 0.85f, - .highlight_exponent = 20.0f + .highlight_exponent = 1500.0f }, .center = { .x = 0.2, .y = -1.25, .z = 0.0 }, .radius = 0.6f, -- cgit v1.2.3