From 2e300062591398269e27fe2b359ed28030bc788e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 12 Feb 2017 06:48:09 -0800 Subject: ray: tweak surface properties Make spheres a little more diverse in terms of specular/diffusion, and minor tweak to the plane color. --- src/modules/ray/ray.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/modules/ray/ray.c b/src/modules/ray/ray.c index 65af60c..6dc15a6 100644 --- a/src/modules/ray/ray.c +++ b/src/modules/ray/ray.c @@ -21,7 +21,7 @@ static void ray(fb_fragment_t *fragment) .plane = { .type = RAY_OBJECT_TYPE_PLANE, .surface = { - .color = { .x = 0.4, .y = 0.2, .z = 0.5 }, + .color = { .x = 0.6, .y = 0.3, .z = 0.8 }, .diffuse = 1.0f, .specular = 0.2f, }, @@ -44,8 +44,8 @@ static void ray(fb_fragment_t *fragment) .type = RAY_OBJECT_TYPE_SPHERE, .surface = { .color = { .x = 0.0, .y = 0.0, .z = 1.0 }, - .diffuse = 1.0f, - .specular = 1.0f, + .diffuse = 0.9f, + .specular = 0.4f, }, .center = { .x = -2.0, .y = 1.0, .z = 0.0 }, .radius = 0.9f, @@ -55,8 +55,8 @@ static void ray(fb_fragment_t *fragment) .type = RAY_OBJECT_TYPE_SPHERE, .surface = { .color = { .x = 0.0, .y = 1.0, .z = 1.0 }, - .diffuse = 1.0f, - .specular = 1.0f, + .diffuse = 0.9f, + .specular = 0.3f, }, .center = { .x = 2.0, .y = -1.0, .z = 0.0 }, .radius = 1.0f, @@ -66,8 +66,8 @@ static void ray(fb_fragment_t *fragment) .type = RAY_OBJECT_TYPE_SPHERE, .surface = { .color = { .x = 0.0, .y = 1.0, .z = 0.0 }, - .diffuse = 1.0f, - .specular = 1.0f, + .diffuse = 0.95f, + .specular = 0.85f, }, .center = { .x = 0.2, .y = -1.25, .z = 0.0 }, .radius = 0.6f, -- cgit v1.2.1