diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-09 14:18:38 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-09 14:19:25 -0500 |
commit | 89da144e4095ecece603a5d7adf29b7a8e493bb1 (patch) | |
tree | 55f90aa73e5edc540837e2dfa3bf0c08d3dcee3d /tests/libdimension | |
parent | ecf8117d5d77e5ad9ebc2f987af7f07f75a30c45 (diff) | |
download | dimension-89da144e4095ecece603a5d7adf29b7a8e493bb1.tar.xz |
Store inverse object transformation in a separate field.
Diffstat (limited to 'tests/libdimension')
-rw-r--r-- | tests/libdimension/tests.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c index 1257219..87cbb7b 100644 --- a/tests/libdimension/tests.c +++ b/tests/libdimension/tests.c @@ -86,9 +86,7 @@ dmnsn_new_default_scene() return NULL; } - sphere->trans = dmnsn_matrix_inverse( - dmnsn_scale_matrix(dmnsn_vector_construct(1.25, 1.25, 1.25)) - ); + sphere->trans = dmnsn_scale_matrix(dmnsn_vector_construct(1.25, 1.25, 1.25)); dmnsn_object *cube = dmnsn_new_cube(); if (!cube) { @@ -109,9 +107,7 @@ dmnsn_new_default_scene() return NULL; } - cube->trans = dmnsn_matrix_inverse( - dmnsn_rotation_matrix(dmnsn_vector_construct(0.75, 0.0, 0.0)) - ); + cube->trans = dmnsn_rotation_matrix(dmnsn_vector_construct(0.75, 0.0, 0.0)); /* Now make a light */ |