Function rustracer::shape::plane_normal
source · fn plane_normal(ray_dir: Vector) -> NormalExpand description
Calculates normals to Plane’s surface.
This Function is meant to be used inside Plane’s
RayIntersection implementation.
ray_dir is the direction of an impacting Ray
and is used to determine on which side of the surface the normal is calculated.