summaryrefslogtreecommitdiffstats
path: root/dimension/realize.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-09 14:18:38 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-09 14:19:25 -0500
commit89da144e4095ecece603a5d7adf29b7a8e493bb1 (patch)
tree55f90aa73e5edc540837e2dfa3bf0c08d3dcee3d /dimension/realize.c
parentecf8117d5d77e5ad9ebc2f987af7f07f75a30c45 (diff)
downloaddimension-89da144e4095ecece603a5d7adf29b7a8e493bb1.tar.xz
Store inverse object transformation in a separate field.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r--dimension/realize.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/dimension/realize.c b/dimension/realize.c
index b5c4225..bb977a6 100644
--- a/dimension/realize.c
+++ b/dimension/realize.c
@@ -113,7 +113,6 @@ dmnsn_realize_box(dmnsn_astnode astnode)
(x2.z + x1.z)/2.0)),
box->trans
);
- box->trans = dmnsn_matrix_inverse(box->trans);
return box;
}
@@ -151,7 +150,6 @@ dmnsn_realize_sphere(dmnsn_astnode astnode)
sphere->trans = dmnsn_scale_matrix(dmnsn_vector_construct(r, r, r));
sphere->trans = dmnsn_matrix_mul(dmnsn_translation_matrix(x0), sphere->trans);
- sphere->trans = dmnsn_matrix_inverse(sphere->trans);
return sphere;
}