summaryrefslogtreecommitdiff
path: root/src/modules/ray/ray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/ray/ray.c')
-rw-r--r--src/modules/ray/ray.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/ray/ray.c b/src/modules/ray/ray.c
index 60784db..4af9715 100644
--- a/src/modules/ray/ray.c
+++ b/src/modules/ray/ray.c
@@ -73,6 +73,8 @@ static ray_object_t objects[] = {
.center = { .x = 0.2, .y = -1.25, .z = 0.0 },
.radius = 0.6f,
}
+ }, {
+ .type = RAY_OBJECT_TYPE_SENTINEL,
}
};
@@ -89,6 +91,8 @@ static ray_object_t lights[] = {
},
}
}
+ }, {
+ .type = RAY_OBJECT_TYPE_SENTINEL,
}
};
@@ -105,9 +109,7 @@ static ray_camera_t camera = {
static ray_scene_t scene = {
.objects = objects,
- .n_objects = nelems(objects),
.lights = lights,
- .n_lights = nelems(lights),
.ambient_color = { .x = 1.0f, .y = 1.0f, .z = 1.0f },
.ambient_brightness = .04f,
};
© All Rights Reserved