Smooth triangles! And support for them in the OBJ File parser.
Also add an interesting tea party scene!
This commit is contained in:
@@ -35,7 +35,7 @@ Intersect Sphere::localIntersect(Ray r)
|
||||
return ret;
|
||||
}
|
||||
|
||||
Tuple Sphere::localNormalAt(Tuple point)
|
||||
Tuple Sphere::localNormalAt(Tuple point, Intersection *hit)
|
||||
{
|
||||
return (point - Point(0, 0, 0)).normalise();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user