summaryrefslogtreecommitdiffstats
path: root/libdimension/pigment.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-09-14 18:56:08 -0400
committerTavian Barnes <tavianator@gmail.com>2011-09-14 19:03:07 -0400
commit1374b946398544a28ac989c75570d4b7c6937873 (patch)
treed3f05e23b5c39201292bfaddaca23220de6652f7 /libdimension/pigment.c
parent4bfa19e5a0b426ea6ec99dfebaeb35e507136b74 (diff)
downloaddimension-1374b946398544a28ac989c75570d4b7c6937873.tar.xz
Transform normals as pseudovectors, not vectors.
Also clarify the vector transformation API. Instead of dmnsn_transform_vector(), we have: - dmnsn_transform_point() - dmnsn_transform_direction() - dmnsn_transform_normal()
Diffstat (limited to 'libdimension/pigment.c')
-rw-r--r--libdimension/pigment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/pigment.c b/libdimension/pigment.c
index 8c1cc9a..3650ba3 100644
--- a/libdimension/pigment.c
+++ b/libdimension/pigment.c
@@ -71,7 +71,7 @@ dmnsn_color
dmnsn_evaluate_pigment(const dmnsn_pigment *pigment, dmnsn_vector v)
{
if (pigment->pigment_fn) {
- dmnsn_vector v_trans = dmnsn_transform_vector(pigment->trans_inv, v);
+ dmnsn_vector v_trans = dmnsn_transform_point(pigment->trans_inv, v);
return pigment->pigment_fn(pigment, v_trans);
} else {
return pigment->quick_color;