diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-18 11:58:18 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-18 21:05:41 -0600 |
commit | fe3bd7a078ac758792da7338d480b274e6aa4895 (patch) | |
tree | 2757c92940b80f9519e70ffbb727b9d65c9bf27b /libdimension/raytrace.c | |
parent | 8a0acb317cf4870b3893849e6565833c611095bd (diff) | |
download | dimension-fe3bd7a078ac758792da7338d480b274e6aa4895.tar.xz |
Rename to dmnsn_vector_normalized().
Diffstat (limited to 'libdimension/raytrace.c')
-rw-r--r-- | libdimension/raytrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c index f5c68e6..87e0b8f 100644 --- a/libdimension/raytrace.c +++ b/libdimension/raytrace.c @@ -218,7 +218,7 @@ dmnsn_raytrace_background(dmnsn_raytrace_state *state, dmnsn_line ray) && (state->scene->quality & DMNSN_RENDER_PIGMENT)) { dmnsn_color sky = dmnsn_sky_sphere_color(state->scene->sky_sphere, - dmnsn_vector_normalize(ray.n)); + dmnsn_vector_normalized(ray.n)); color = dmnsn_apply_filter(color, sky); } @@ -310,7 +310,7 @@ dmnsn_raytrace_lighting(dmnsn_raytrace_state *state) dmnsn_color light_color = dmnsn_raytrace_light_ray(state, *light); if (!dmnsn_color_is_black(light_color)) { if (state->scene->quality & DMNSN_RENDER_FINISH) { - dmnsn_vector ray = dmnsn_vector_normalize( + dmnsn_vector ray = dmnsn_vector_normalized( dmnsn_vector_sub((*light)->x0, state->r) ); @@ -370,7 +370,7 @@ dmnsn_raytrace_translucency(dmnsn_raytrace_state *state) dmnsn_line trans_ray = dmnsn_new_line(state->r, state->intersection->ray.n); trans_ray = dmnsn_line_add_epsilon(trans_ray); - dmnsn_vector r = dmnsn_vector_normalize(trans_ray.n); + dmnsn_vector r = dmnsn_vector_normalized(trans_ray.n); dmnsn_vector n = state->intersection->normal; dmnsn_raytrace_state recursive_state = *state; @@ -439,7 +439,7 @@ dmnsn_raytrace_shoot(dmnsn_raytrace_state *state, dmnsn_line ray) state->intersection = &intersection; state->r = dmnsn_line_point(state->intersection->ray, state->intersection->t); - state->viewer = dmnsn_vector_normalize( + state->viewer = dmnsn_vector_normalized( dmnsn_vector_negate(state->intersection->ray.n) ); state->reflected = dmnsn_vector_sub( |