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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modules/ray/ray.c b/src/modules/ray/ray.c
index 185b412..1143db1 100644
--- a/src/modules/ray/ray.c
+++ b/src/modules/ray/ray.c
@@ -73,7 +73,11 @@ static ray_object_t objects[] = {
.center = { .x = 0.2, .y = -1.25, .z = 0.0 },
.radius = 0.6f,
}
- }, {
+ }
+};
+
+static ray_object_t lights[] = {
+ {
.light = {
.type = RAY_OBJECT_TYPE_LIGHT,
.brightness = 1.0,
@@ -102,8 +106,8 @@ static ray_camera_t camera = {
static ray_scene_t scene = {
.objects = objects,
.n_objects = nelems(objects),
- .lights = &objects[5],
- .n_lights = 1,
+ .lights = lights,
+ .n_lights = nelems(lights),
.ambient_color = { .x = 1.0f, .y = 1.0f, .z = 1.0f },
.ambient_brightness = .04f,
};
© All Rights Reserved