summaryrefslogtreecommitdiff
path: root/src/modules/ray/ray_camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/ray/ray_camera.c')
-rw-r--r--src/modules/ray/ray_camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ray/ray_camera.c b/src/modules/ray/ray_camera.c
index 8a06aa3..e7792f2 100644
--- a/src/modules/ray/ray_camera.c
+++ b/src/modules/ray/ray_camera.c
@@ -81,5 +81,5 @@ void ray_camera_frame_begin(ray_camera_t *camera, fb_fragment_t *fragment, ray_r
frame->cur_e = ray_3f_lerp(&frame->ne, &frame->se, frame->y_alpha);
ray->origin = camera->position;
- ray->direction = ray_3f_normalize(&frame->cur_w);
+ ray->direction = ray_3f_nlerp(&frame->cur_w, &frame->cur_e, frame->x_alpha);
}
© All Rights Reserved