summaryrefslogtreecommitdiffstats
path: root/libdimension/scene.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r--libdimension/scene.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c
index 780f8c6..4a84823 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -50,8 +50,8 @@ dmnsn_raytrace_scene(dmnsn_scene *scene)
for (i = 0; i < scene->canvas->x; ++i) {
for (j = 0; j < scene->canvas->y; ++j) {
- ray = (*scene->camera->ray_fn)(scene->canvas, i, j);
- if ((*object->intersections_fn)(ray)->length > 0) {
+ ray = (*scene->camera->ray_fn)(scene->camera, scene->canvas, i, j);
+ if ((*object->intersections_fn)(object, ray)->length > 0) {
dmnsn_set_pixel(scene->canvas, i, j,
dmnsn_color_from_XYZ(dmnsn_whitepoint));
} else {