added Color::yellow, finished shapes/Box, added a couple boxes to sample scene

git-svn-id: svn://anubis/fart/trunk@121 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2009-02-17 05:36:48 +00:00
1 parent 13fedccf4c
commit 4b0f506522
5 files changed
+29 -4

No files matched your search

+3 -3
View File
@@ -10,9 +10,9 @@ using namespace std;
Box::Box(refptr<Vector> size)
{
m_size = *size;
m_size[0] = fabs(m_size[0]);
m_size[1] = fabs(m_size[1]);
m_size[2] = fabs(m_size[2]);
m_size[0] = fabs(m_size[0]) / 2.0;
m_size[1] = fabs(m_size[1]) / 2.0;
m_size[2] = fabs(m_size[2]) / 2.0;
}
Shape::IntersectList Box::intersect(const Ray & ray)
+1
View File
@@ -42,6 +42,7 @@ class Shape
#include "Sphere.h"
#include "Plane.h"
#include "Box.h"
#endif