diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-06-17 14:38:31 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-06-17 14:38:31 +0000 |
commit | 3a270edef152bc55861f2371681f20ea35da87a3 (patch) | |
tree | 291667a45041029b06329e593ca3bfb47b97ebfe /tests/raytrace.c | |
parent | 6c88e0028c11721499ef93a6df651df3a41150c3 (diff) | |
download | dimension-3a270edef152bc55861f2371681f20ea35da87a3.tar.xz |
New dmnsn_matrix_inverse() function.
Diffstat (limited to 'tests/raytrace.c')
-rw-r--r-- | tests/raytrace.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/raytrace.c b/tests/raytrace.c index c8c25cd..ea5b67f 100644 --- a/tests/raytrace.c +++ b/tests/raytrace.c @@ -59,11 +59,15 @@ int main() { scene->background = color; sphere = dmnsn_new_sphere(); - sphere->trans = dmnsn_scale_matrix(dmnsn_vector_construct(0.8, 0.8, 0.8)); + sphere->trans = dmnsn_matrix_inverse( + dmnsn_scale_matrix(dmnsn_vector_construct(1.25, 1.25, 1.25)) + ); dmnsn_array_push(scene->objects, &sphere); cube = dmnsn_new_cube(); - cube->trans = dmnsn_rotation_matrix(dmnsn_vector_construct(0.75, 0.0, 0.0)); + cube->trans = dmnsn_matrix_inverse( + dmnsn_rotation_matrix(dmnsn_vector_construct(0.75, 0.0, 0.0)) + ); dmnsn_array_push(scene->objects, &cube); dmnsn_raytrace_scene(scene); |