erebus

diff liberebus/src/geomobj.h @ 18:09028848f276

- implemented Box object intersection - implemented interactive camera manipulation
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 26 May 2014 23:34:12 +0300
parents e2d9bf168a41
children 2e817711d0f6
line diff
     1.1 --- a/liberebus/src/geomobj.h	Mon May 26 05:41:28 2014 +0300
     1.2 +++ b/liberebus/src/geomobj.h	Mon May 26 23:34:12 2014 +0300
     1.3 @@ -34,6 +34,10 @@
     1.4  class Box : public GeomObject {
     1.5  public:
     1.6  	bool intersect(const Ray &ray, RayHit *hit = 0) const override;
     1.7 +
     1.8 +	Vector3 calc_normal(const RayHit &hit) const override;
     1.9 +	Vector3 calc_tangent(const RayHit &hit) const override;
    1.10 +	Vector2 calc_texcoords(const RayHit &hit) const override;
    1.11  };
    1.12  
    1.13  class Triangle : public GeomObject {