Huge speed up by changing how Intersect are shared.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
class Triangle : public Shape
|
||||
{
|
||||
protected:
|
||||
Intersect localIntersect(Ray r);
|
||||
void localIntersect(Ray r, Intersect &xs);
|
||||
Tuple localNormalAt(Tuple point, Intersection *hit = nullptr);
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user