Smooth triangles! And support for them in the OBJ File parser.
Also add an interesting tea party scene!
This commit is contained in:
@@ -19,7 +19,7 @@ class Cone : public Shape {
|
||||
protected:
|
||||
Intersect localIntersect(Ray r);
|
||||
|
||||
Tuple localNormalAt(Tuple point);
|
||||
Tuple localNormalAt(Tuple point, Intersection *hit = nullptr);
|
||||
|
||||
bool checkCap(Ray r, double t, double y);
|
||||
void intersectCaps(Ray r, Intersect &xs);
|
||||
|
||||
Reference in New Issue
Block a user