Huge speed up by changing how Intersect are shared.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
class TestShape : public Shape
|
||||
{
|
||||
private:
|
||||
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