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