diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-15 15:16:07 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-15 15:16:07 -0400 |
commit | 9563ecb2efb2eec6d83fa4f73b75dfb4dccbc34c (patch) | |
tree | d9424c23a0aab01a5e2960cdb17548036ff251f0 /tests/libdimension/tests.c | |
parent | 1b1f00e70564d6acb2b1e09b0a5f430da4e4b8a3 (diff) | |
download | dimension-9563ecb2efb2eec6d83fa4f73b75dfb4dccbc34c.tar.xz |
Add plane object.
Diffstat (limited to 'tests/libdimension/tests.c')
-rw-r--r-- | tests/libdimension/tests.c | 6 |
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( |