Huge speed up by changing how Intersect are shared.
This commit is contained in:
@@ -13,10 +13,9 @@ TestShape::TestShape() : localRay(Point(0, 0, 0), Vector(0, 0, 0))
|
||||
{
|
||||
}
|
||||
|
||||
Intersect TestShape::localIntersect(Ray r)
|
||||
void TestShape::localIntersect(Ray r, Intersect &xs)
|
||||
{
|
||||
this->localRay = r;
|
||||
return Intersect();
|
||||
}
|
||||
|
||||
Tuple TestShape::localNormalAt(Tuple point, Intersection *hit)
|
||||
|
||||
Reference in New Issue
Block a user