summaryrefslogtreecommitdiffstats
path: root/libdimension/scene.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r--libdimension/scene.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c
index 4a84823..048ad45 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -38,25 +38,3 @@ dmnsn_delete_scene(dmnsn_scene *scene)
free(scene);
}
}
-
-void
-dmnsn_raytrace_scene(dmnsn_scene *scene)
-{
- unsigned int i, j;
- dmnsn_object *object;
- dmnsn_line ray;
-
- dmnsn_array_get(scene->objects, 0, &object);
-
- for (i = 0; i < scene->canvas->x; ++i) {
- for (j = 0; j < scene->canvas->y; ++j) {
- 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 {
- dmnsn_set_pixel(scene->canvas, i, j, scene->background);
- }
- }
- }
-}