added diffuse and specular colors to Material, switched all "private:" to "protected:"
git-svn-id: svn://anubis/fart/trunk@69 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
04b8ea5f9e
commit
18c0c8d45f
8 files changed
+15
-11
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ class Plane : public Shape
|
||||
IntersectList intersect(const Ray & ray);
|
||||
Vector getNormalAt(const Vector & pt);
|
||||
|
||||
private:
|
||||
protected:
|
||||
double m_a, m_b, m_c, m_d;
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ class Sphere : public Shape
|
||||
IntersectList intersect(const Ray & ray);
|
||||
Vector getNormalAt(const Vector & pt);
|
||||
|
||||
private:
|
||||
protected:
|
||||
double m_radius;
|
||||
double m_radius2;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user