summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-17 22:59:29 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-17 22:59:29 -0500
commitc576229cc54c0fb963967751281e6a42fc9230ea (patch)
treed6988c644d8776d23492b326026a0f56a6162bb0 /tests
parent3473e1cbdc6200131923d1fd25e0b021bf66a06c (diff)
downloaddimension-c576229cc54c0fb963967751281e6a42fc9230ea.tar.xz
Use CIE 1931 RGB for dmnsn_color_illuminate().
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/tests.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c
index 62c4454..b2670f8 100644
--- a/tests/libdimension/tests.c
+++ b/tests/libdimension/tests.c
@@ -22,17 +22,15 @@
dmnsn_scene *
dmnsn_new_default_scene()
{
- dmnsn_scene *scene;
-
/* Allocate a new scene */
- scene = dmnsn_new_scene();
+ dmnsn_scene *scene = dmnsn_new_scene();
if (!scene) {
return NULL;
}
/* Default finish */
- scene->default_texture->finish = dmnsn_new_phong_finish(1.0, 0.2, 50.0);
+ scene->default_texture->finish = dmnsn_new_phong_finish(1.0, 0.5, 50.0);
if (!scene->default_texture->finish) {
dmnsn_delete_scene(scene);
return NULL;
@@ -90,7 +88,7 @@ dmnsn_new_default_scene()
return NULL;
}
- sphere->texture->pigment = dmnsn_new_solid_pigment(dmnsn_white);
+ sphere->texture->pigment = dmnsn_new_solid_pigment(dmnsn_yellow);
if (!sphere->texture->pigment) {
dmnsn_delete_scene(scene);
return NULL;
@@ -111,7 +109,7 @@ dmnsn_new_default_scene()
return NULL;
}
- cube->texture->pigment = dmnsn_new_solid_pigment(dmnsn_white);
+ cube->texture->pigment = dmnsn_new_solid_pigment(dmnsn_magenta);
if (!cube->texture->pigment) {
dmnsn_delete_scene(scene);
return NULL;
@@ -123,7 +121,7 @@ dmnsn_new_default_scene()
dmnsn_light *light = dmnsn_new_point_light(
dmnsn_vector_construct(-15.0, 20.0, 10.0),
- dmnsn_white
+ dmnsn_cyan
);
if (!light) {
dmnsn_delete_scene(scene);