We need to compute the surface normal for the point of intersection. For spheres this is trivial and for planes we have the surface normal given in the plane definition. For triangles we can compute using the cross product of the edges however the orientation is ambiguous (the normal could be multiplied by negative 1).
Normally the orientation is meant to be inferred based on the ordering of the triangle vertices. Is this the case for this assignment? If so what is the expected orientation based on the ordering of the vertices?
We need to compute the surface normal for the point of intersection. For spheres this is trivial and for planes we have the surface normal given in the plane definition. For triangles we can compute using the cross product of the edges however the orientation is ambiguous (the normal could be multiplied by negative 1).
Normally the orientation is meant to be inferred based on the ordering of the triangle vertices. Is this the case for this assignment? If so what is the expected orientation based on the ordering of the vertices?