Hit.h 273 B

1234567891011121314
  1. #ifndef IGL_HIT_H
  2. #define IGL_HIT_H
  3. namespace igl
  4. {
  5. // Reimplementation of the embree::Hit struct from embree1.0
  6. struct Hit
  7. {
  8. int id; // primitive id
  9. float u,v; // barycentric coordinates
  10. float t; // distance = direction*t to intersection
  11. };
  12. }
  13. #endif