diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-09 15:01:22 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-09 15:01:22 -0500 |
commit | 319491781c1389d82897075b6d890e74d82a08a9 (patch) | |
tree | 048b36a0fc9451db499f4f6c1d828814130a67fa /libdimension/dimension/object.h | |
parent | 1044badd2e625c73eae616f6a0d10479dde54db5 (diff) | |
download | dimension-319491781c1389d82897075b6d890e74d82a08a9.tar.xz |
Calculate surface normals in intersection callbacks.
Diffstat (limited to 'libdimension/dimension/object.h')
-rw-r--r-- | libdimension/dimension/object.h | 3 |
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; |