summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-02-12 06:48:09 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2017-02-12 06:48:09 -0800
commit2e300062591398269e27fe2b359ed28030bc788e (patch)
tree9125379e558e7a31c2436267215453c651bb3c3d /src
parent6fcf69808f3721b1bdae68f9e22d03991e80b25c (diff)
ray: tweak surface properties
Make spheres a little more diverse in terms of specular/diffusion, and minor tweak to the plane color.
Diffstat (limited to 'src')
-rw-r--r--src/modules/ray/ray.c14
1 files changed, 7 insertions, 7 deletions
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,
© All Rights Reserved