summaryrefslogtreecommitdiffstats
path: root/libdimension/point_light.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/point_light.c')
-rw-r--r--libdimension/point_light.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/point_light.c b/libdimension/point_light.c
index 6ecaa24..219ea70 100644
--- a/libdimension/point_light.c
+++ b/libdimension/point_light.c
@@ -33,11 +33,11 @@ typedef struct dmnsn_point_light_payload {
} dmnsn_point_light_payload;
/** Point light direction callback. */
-static dmnsn_line
+static dmnsn_vector
dmnsn_point_light_direction_fn(const dmnsn_light *light, dmnsn_vector v)
{
dmnsn_point_light_payload *payload = light->ptr;
- return dmnsn_new_line(v, dmnsn_vector_sub(payload->origin, v));
+ return dmnsn_vector_sub(payload->origin, v);
}
/** Point light illumination callback. */