fixed bug in util/Vector::reflect(), Phong shading getting much closer

git-svn-id: svn://anubis/fart/trunk@73 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2009-01-31 00:17:09 +00:00
1 parent 41b4354d52
commit 6fbdf46122
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ Vector Vector::reflect(const Vector & target) const
{
Vector projected = proj(target);
Vector me_to_proj = projected - (*this);
return projected + me_to_proj * 2.0;
return (*this) + me_to_proj * 2.0;
}
std::ostream & operator<<(std::ostream & out, const Vector & v)