Smooth triangles! And support for them in the OBJ File parser.
Also add an interesting tea party scene!
This commit is contained in:
@@ -14,8 +14,9 @@
|
||||
|
||||
class Triangle : public Shape
|
||||
{
|
||||
protected:
|
||||
Intersect localIntersect(Ray r);
|
||||
Tuple localNormalAt(Tuple point);
|
||||
Tuple localNormalAt(Tuple point, Intersection *hit = nullptr);
|
||||
|
||||
public:
|
||||
Tuple p1, p2, p3;
|
||||
|
||||
Reference in New Issue
Block a user