diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-09-14 18:56:08 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-09-14 19:03:07 -0400 |
commit | 1374b946398544a28ac989c75570d4b7c6937873 (patch) | |
tree | d3f05e23b5c39201292bfaddaca23220de6652f7 /libdimension/raytrace.c | |
parent | 4bfa19e5a0b426ea6ec99dfebaeb35e507136b74 (diff) | |
download | dimension-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/raytrace.c')
-rw-r--r-- | libdimension/raytrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c index fdfa3cb..4ee451a 100644 --- a/libdimension/raytrace.c +++ b/libdimension/raytrace.c @@ -139,7 +139,7 @@ dmnsn_initialize_raytrace_state(dmnsn_raytrace_state *state, state->interior = intersection->object->interior; state->r = dmnsn_line_point(intersection->ray, intersection->t); - state->pigment_r = dmnsn_transform_vector( + state->pigment_r = dmnsn_transform_point( intersection->object->pigment_trans, state->r ); |