[protected, inherited]
Helper function that computes the refracted direction and sets up a ray with the correct parameters.