From 319491781c1389d82897075b6d890e74d82a08a9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 9 Nov 2009 15:01:22 -0500 Subject: Calculate surface normals in intersection callbacks. --- libdimension/dimension/object.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libdimension/dimension') diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h index 0f53406..0393d94 100644 --- a/libdimension/dimension/object.h +++ b/libdimension/dimension/object.h @@ -31,6 +31,9 @@ typedef struct { dmnsn_line ray; double t; + /* The surface normal at the intersection point */ + dmnsn_vector normal; + /* The texture at the intersection point */ const dmnsn_texture *texture; } dmnsn_intersection; -- cgit v1.2.3