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:
Josh Holtrop committed 2009-03-04 02:03:21 +00:00
1 parent 7d0b4c5646
commit f9cf1381a6
4 files changed
+62 -14

No files matched your search

+5
View File
@@ -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);
}
+1
View File
@@ -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;