erebus
diff liberebus/src/geomobj.h @ 8:e2d9bf168a41
semi-works ...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 24 May 2014 06:12:57 +0300 |
parents | 93894c232d65 |
children | 09028848f276 |
line diff
1.1 --- a/liberebus/src/geomobj.h Sat May 24 02:27:08 2014 +0300 1.2 +++ b/liberebus/src/geomobj.h Sat May 24 06:12:57 2014 +0300 1.3 @@ -16,11 +16,19 @@ 1.4 ObjType get_type() const override; 1.5 1.6 bool intersect(const Ray &ray, RayHit *hit = 0) const override; 1.7 + 1.8 + virtual Vector3 calc_normal(const RayHit &hit) const; 1.9 + virtual Vector3 calc_tangent(const RayHit &hit) const; 1.10 + virtual Vector2 calc_texcoords(const RayHit &hit) const; 1.11 }; 1.12 1.13 class Sphere : public GeomObject { 1.14 public: 1.15 bool intersect(const Ray &ray, RayHit *hit = 0) const override; 1.16 + 1.17 + Vector3 calc_normal(const RayHit &hit) const override; 1.18 + Vector3 calc_tangent(const RayHit &hit) const override; 1.19 + Vector2 calc_texcoords(const RayHit &hit) const override; 1.20 }; 1.21 1.22 class Box : public GeomObject {