summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/object.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-09 15:01:22 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-09 15:01:22 -0500
commit319491781c1389d82897075b6d890e74d82a08a9 (patch)
tree048b36a0fc9451db499f4f6c1d828814130a67fa /libdimension/dimension/object.h
parent1044badd2e625c73eae616f6a0d10479dde54db5 (diff)
downloaddimension-319491781c1389d82897075b6d890e74d82a08a9.tar.xz
Calculate surface normals in intersection callbacks.
Diffstat (limited to 'libdimension/dimension/object.h')
-rw-r--r--libdimension/dimension/object.h3
1 files changed, 3 insertions, 0 deletions
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;