summaryrefslogtreecommitdiff
path: root/src/modules/ray/ray_camera.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/ray/ray_camera.h')
-rw-r--r--src/modules/ray/ray_camera.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ray/ray_camera.h b/src/modules/ray/ray_camera.h
index b0c874a..191d614 100644
--- a/src/modules/ray/ray_camera.h
+++ b/src/modules/ray/ray_camera.h
@@ -69,7 +69,7 @@ static inline int ray_camera_frame_y_step(ray_camera_frame_t *frame)
frame->y_alpha += frame->y_delta;
frame->cur_w = ray_3f_lerp(&frame->nw, &frame->sw, frame->y_alpha);
frame->cur_e = ray_3f_lerp(&frame->ne, &frame->se, frame->y_alpha);
- frame->ray->direction = ray_3f_normalize(&frame->cur_w);
+ frame->ray->direction = ray_3f_nlerp(&frame->cur_w, &frame->cur_e, frame->x_alpha);
return 1;
}
© All Rights Reserved