summaryrefslogtreecommitdiffstats
path: root/tests/libdimension/tests.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-09 15:01:22 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-09 15:01:22 -0500
commit319491781c1389d82897075b6d890e74d82a08a9 (patch)
tree048b36a0fc9451db499f4f6c1d828814130a67fa /tests/libdimension/tests.c
parent1044badd2e625c73eae616f6a0d10479dde54db5 (diff)
downloaddimension-319491781c1389d82897075b6d890e74d82a08a9.tar.xz
Calculate surface normals in intersection callbacks.
Diffstat (limited to 'tests/libdimension/tests.c')
-rw-r--r--tests/libdimension/tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c
index 87cbb7b..d79434d 100644
--- a/tests/libdimension/tests.c
+++ b/tests/libdimension/tests.c
@@ -101,7 +101,7 @@ dmnsn_new_default_scene()
return NULL;
}
- cube->texture->pigment = dmnsn_new_solid_pigment(dmnsn_black);
+ cube->texture->pigment = dmnsn_new_solid_pigment(dmnsn_white);
if (!cube->texture->pigment) {
dmnsn_delete_scene(scene);
return NULL;
@@ -113,7 +113,7 @@ dmnsn_new_default_scene()
dmnsn_light *light = dmnsn_new_point_light(
dmnsn_vector_construct(-5.0, 20.0, -5.0),
- dmnsn_white
+ dmnsn_color_mul(0.9, dmnsn_white)
);
if (!light) {
dmnsn_delete_scene(scene);