Smooth triangles! And support for them in the OBJ File parser.
Also add an interesting tea party scene!
This commit is contained in:
@@ -59,7 +59,7 @@ Intersect Cube::localIntersect(Ray r)
|
||||
return ret;
|
||||
}
|
||||
|
||||
Tuple Cube::localNormalAt(Tuple point)
|
||||
Tuple Cube::localNormalAt(Tuple point, Intersection *hit)
|
||||
{
|
||||
double maxC = max3(fabs(point.x), fabs(point.y), fabs(point.z));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user