diff options
Diffstat (limited to 'libdimension/texture.c')
-rw-r--r-- | libdimension/texture.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/texture.c b/libdimension/texture.c index 93279bb..0ca5b98 100644 --- a/libdimension/texture.c +++ b/libdimension/texture.c @@ -45,7 +45,7 @@ dmnsn_delete_pigment(dmnsn_pigment *pigment) /* Precompute pigment properties */ void -dmnsn_pigment_precompute(dmnsn_pigment *pigment) +dmnsn_pigment_init(dmnsn_pigment *pigment) { pigment->trans_inv = dmnsn_matrix_inverse(pigment->trans); } @@ -106,12 +106,12 @@ dmnsn_delete_texture(dmnsn_texture *texture) /* Calculate matrix inverses */ void -dmnsn_texture_precompute(dmnsn_texture *texture) +dmnsn_texture_init(dmnsn_texture *texture) { texture->trans_inv = dmnsn_matrix_inverse(texture->trans); if (texture->pigment) { texture->pigment->trans = dmnsn_matrix_mul(texture->trans, texture->pigment->trans); - dmnsn_pigment_precompute(texture->pigment); + dmnsn_pigment_init(texture->pigment); } } |