summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-08-18 20:17:59 -0600
committerTavian Barnes <tavianator@gmail.com>2011-08-18 20:17:59 -0600
commite1a7c44bf102b5871a74fba8f168427f5fc118b5 (patch)
tree1ea2a51970c61c6d70861efcaaf414cfa686bd39 /libdimension
parent9c9fb9d59c2e90fc2bc9066dac514285c9479277 (diff)
downloaddimension-e1a7c44bf102b5871a74fba8f168427f5fc118b5.tar.xz
Handle reflection correctly in the client.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/tests/render.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c
index e9dff2a..577fa6a 100644
--- a/libdimension/tests/render.c
+++ b/libdimension/tests/render.c
@@ -115,11 +115,9 @@ dmnsn_test_scene_add_hollow_cube(dmnsn_scene *scene)
cube->texture = dmnsn_new_texture();
cube->texture->pigment = dmnsn_new_solid_pigment(cube_color);
- dmnsn_color reflect = dmnsn_color_from_sRGB(
- dmnsn_color_mul(0.5, dmnsn_white)
- );
+ dmnsn_color reflect = dmnsn_color_mul(0.5, dmnsn_white);
cube->texture->finish.reflection
- = dmnsn_new_basic_reflection(reflect, reflect, 1.0);
+ = dmnsn_new_basic_reflection(dmnsn_black, reflect, 1.0);
cube->interior = dmnsn_new_interior();
cube->interior->ior = 1.1;