summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-14 18:18:19 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-14 18:18:19 +0000
commit5c73e21b426ed381a1ae8d1bcac6fc78e5952b8f (patch)
tree979b425b4ef93e1492b45700c4ac3f899d4fc60e /tests
parent5e8d0c611681d866d903a087ea238aeb5fbb5508 (diff)
downloaddimension-5c73e21b426ed381a1ae8d1bcac6fc78e5952b8f.tar.xz
Add a transformation matrix to objects.
Diffstat (limited to 'tests')
-rw-r--r--tests/raytrace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/raytrace.c b/tests/raytrace.c
index de1bc89..ec13782 100644
--- a/tests/raytrace.c
+++ b/tests/raytrace.c
@@ -59,6 +59,7 @@ int main() {
scene->background = color;
cube = dmnsn_new_cube();
+ cube->trans = dmnsn_rotation_matrix(dmnsn_vector_construct(0.75, 0.0, 0.0));
dmnsn_array_push(scene->objects, &cube);
dmnsn_raytrace_scene(scene);