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 @@ Intersect TestShape::localIntersect(Ray r)
|
||||
return Intersect();
|
||||
}
|
||||
|
||||
Tuple TestShape::localNormalAt(Tuple point)
|
||||
Tuple TestShape::localNormalAt(Tuple point, Intersection *hit)
|
||||
{
|
||||
return Vector(point.x, point.y, point.z);
|
||||
}
|
||||
Reference in New Issue
Block a user