summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-15 15:16:07 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-15 15:16:07 -0400
commit9563ecb2efb2eec6d83fa4f73b75dfb4dccbc34c (patch)
treed9424c23a0aab01a5e2960cdb17548036ff251f0 /tests
parent1b1f00e70564d6acb2b1e09b0a5f430da4e4b8a3 (diff)
downloaddimension-9563ecb2efb2eec6d83fa4f73b75dfb4dccbc34c.tar.xz
Add plane object.
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/tests.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c
index cf8e752..154d00b 100644
--- a/tests/libdimension/tests.c
+++ b/tests/libdimension/tests.c
@@ -90,6 +90,12 @@ dmnsn_new_default_scene()
dmnsn_object *csg = dmnsn_new_csg_difference(cube, sphere);
dmnsn_array_push(scene->objects, &csg);
+ dmnsn_object *plane = dmnsn_new_plane(dmnsn_new_vector(0.0, 1.0, 0.0));
+ plane->trans = dmnsn_translation_matrix(dmnsn_new_vector(0.0, -2.0, 0.0));
+ plane->texture = dmnsn_new_texture();
+ plane->texture->pigment = dmnsn_new_solid_pigment(dmnsn_white);
+ dmnsn_array_push(scene->objects, &plane);
+
/* Now make a light */
dmnsn_light *light = dmnsn_new_point_light(