tavli
diff src/geom.h @ 3:94aff2ff1934
too much?
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 22 Jun 2015 21:46:57 +0300 |
parents | 52e0dd47753b |
children |
line diff
1.1 --- a/src/geom.h Mon Jun 22 05:15:39 2015 +0300 1.2 +++ b/src/geom.h Mon Jun 22 21:46:57 2015 +0300 1.3 @@ -4,12 +4,15 @@ 1.4 #include "vmath/vmath.h" 1.5 1.6 class GeomObject; 1.7 +class SceneNode; 1.8 1.9 struct HitPoint { 1.10 float dist; //< parametric distance along the ray 1.11 Vector3 pos; //< position of intersection (orig + dir * dist) 1.12 Vector3 normal; //< normal at the point of intersection 1.13 const void *obj; //< pointer to the intersected object 1.14 + const SceneNode *node; 1.15 + Ray ray; 1.16 }; 1.17 1.18 class GeomObject {