From b27ad82573bc70d84bc4213ba00771f4746b36bc Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 25 Feb 2010 15:28:23 -0500 Subject: Add the dmnsn_interior* to dmnsn_intersection*. --- libdimension/dimension/object.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libdimension/dimension') diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h index 4c1980d..e607d8c 100644 --- a/libdimension/dimension/object.h +++ b/libdimension/dimension/object.h @@ -26,7 +26,7 @@ #define DIMENSION_OBJECT_H /* A type to represent a ray-object intersection */ -typedef struct { +typedef struct dmnsn_intersection { /* The ray and point which intersected */ dmnsn_line ray; double t; @@ -34,8 +34,9 @@ typedef struct { /* The surface normal at the intersection point */ dmnsn_vector normal; - /* The texture at the intersection point */ - const dmnsn_texture *texture; + /* The object properties at the intersection point */ + const dmnsn_texture *texture; + const dmnsn_interior *interior; } dmnsn_intersection; /* Intersection allocation cannot fail */ -- cgit v1.2.3