added initial ambient occlusion attempt... but don't like it

git-svn-id: svn://anubis/fart/trunk@261 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2010-06-29 17:44:36 +00:00
1 parent c115dec69b
commit 77e99ac5a5
4 files changed
+52 -4

No files matched your search

+2
View File
@@ -38,6 +38,8 @@ class Color
Color operator+(const Color & c1, const Color & c2);
Color operator-(const Color & c1, const Color & c2);
static inline Color operator*(double d, const Color & c) { return c * d; }
static inline Color operator/(double d, const Color & c) { return c / d; }
std::ostream & operator<<(std::ostream & out, const Color & color);
#endif
+2 -1
View File
@@ -19,7 +19,6 @@ class Vector
double dist_to(const Vector & other) const;
Vector proj(const Vector & target) const;
Vector reflect(const Vector & target) const;
operator double() const { return mag(); }
Vector getPerpendicular() const;
protected:
@@ -33,5 +32,7 @@ Vector operator+(const Vector & v1, const Vector & v2);
Vector operator-(const Vector & v1, const Vector & v2);
Vector operator*(const Vector & v1, double scale);
Vector operator/(const Vector & v1, double scale);
static inline Vector operator*(double d, const Vector & v) { return v * d; }
static inline Vector operator/(double d, const Vector & v) { return v / d; }
#endif