summaryrefslogtreecommitdiffstats
path: root/libdimension/render/render.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-09-03 15:55:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-10-25 11:03:56 -0400
commitb554b20c8d59d6046bdcec7c79fb61cd0e65811c (patch)
treea6c6f257cfaffcec953be7c0cce180f7a8855c68 /libdimension/render/render.c
parentb2cf35c26d5263f3079480208429e3a1d7dd2373 (diff)
downloaddimension-b554b20c8d59d6046bdcec7c79fb61cd0e65811c.tar.xz
math: Make vectors have an array instead of different fields.
Diffstat (limited to 'libdimension/render/render.c')
-rw-r--r--libdimension/render/render.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libdimension/render/render.c b/libdimension/render/render.c
index 842b41e..c0878a0 100644
--- a/libdimension/render/render.c
+++ b/libdimension/render/render.c
@@ -189,10 +189,7 @@ dmnsn_rtstate_initialize(dmnsn_rtstate *state,
state->interior = intersection->object->interior;
state->r = dmnsn_ray_point(intersection->ray, intersection->t);
- state->pigment_r = dmnsn_transform_point(
- intersection->object->pigment_trans,
- state->r
- );
+ state->pigment_r = dmnsn_transform_point(intersection->object->pigment_trans, state->r);
state->viewer = dmnsn_vector_normalized(
dmnsn_vector_negate(intersection->ray.n)
);