diff options
Diffstat (limited to 'modules/ray/ray_object.c')
-rw-r--r-- | modules/ray/ray_object.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ray/ray_object.c b/modules/ray/ray_object.c index 8b324e5..e309647 100644 --- a/modules/ray/ray_object.c +++ b/modules/ray/ray_object.c @@ -1,3 +1,5 @@ +#include <assert.h> + #include "ray_object.h" #include "ray_object_light.h" #include "ray_object_plane.h" @@ -25,6 +27,8 @@ int ray_object_intersects_ray(ray_object_t *object, ray_ray_t *ray, float *res_d case RAY_OBJECT_TYPE_LIGHT: return ray_object_light_intersects_ray(&object->light, ray, res_distance); + default: + assert(0); } } @@ -44,6 +48,8 @@ ray_3f_t ray_object_normal(ray_object_t *object, ray_3f_t *point) case RAY_OBJECT_TYPE_LIGHT: return ray_object_light_normal(&object->light, point); + default: + assert(0); } } @@ -63,5 +69,7 @@ ray_surface_t ray_object_surface(ray_object_t *object, ray_3f_t *point) case RAY_OBJECT_TYPE_LIGHT: return ray_object_light_surface(&object->light, point); + default: + assert(0); } } |