working on shadows but they are appearing in weird places...
git-svn-id: svn://anubis/fart/trunk@185 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
7d0b4c5646
commit
f9cf1381a6
4 files changed
+62
-14
No files matched your search
@@ -31,3 +31,8 @@ std::ostream & operator<<(std::ostream & out, const Ray & r)
|
||||
out << "(" << r.getOrigin() << " -> " << r.getDirection() << ")";
|
||||
return out;
|
||||
}
|
||||
|
||||
Ray Ray::shift(double amt)
|
||||
{
|
||||
return Ray(getPositionAt(amt), m_direction);
|
||||
}
|
||||
@@ -14,6 +14,7 @@ class Ray
|
||||
const Vector & getDirection() const { return m_direction; }
|
||||
Vector getPositionAt(double dist) const;
|
||||
Vector operator[](double dist) const { return getPositionAt(dist); }
|
||||
Ray shift(double amt);
|
||||
|
||||
protected:
|
||||
Vector m_origin;
|
||||
|
||||
Reference in new issue
Block a user