erebus
view liberebus/src/bvol.h @ 31:53a98c148bf8
- introduced SurfaceGeometry to carry all the geometric information input to
BRDF sampling and evaluation functions.
- made Reflectance keep an (optional) pointer to its material
- simplified PhongRefl::sample_dir, with the help of SurfaceGeometry
- worked around microsoft's broken std::thread implementation's deadlock on join
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 07 Jun 2014 09:14:17 +0300 |
parents | 4abdce1361b9 |
children | bab25c0ce337 |
line source
1 #ifndef BVOL_H_
2 #define BVOL_H_
4 #include "vmath/ray.h"
6 class AABox {
7 public:
8 Vector3 vmin, vmax;
10 AABox() : vmin(-0.5, -0.5, -0.5), vmax(0.5, 0.5, 0.5) {}
11 AABox(const Vector3 &v0, const Vector3 &v1) : vmin(v0), vmax(v1) {}
13 bool intersect(const Ray &ray) const;
14 };
16 #endif // BVOL_H_