generate_ray_differentials() normalizes the ray direction internally, but the final render_from_camera transformation can result in a non-normalized vector. In debug mode, this causes the debug_assert!() to fail which checks if the ray direction is normalized.
Now, I don't know if this impacts the final image in a meaningful way - scenarios where we strictly need the direction normalized, we should already normalize it.
Should we just normalize the direction at the end of generate_ray_differential() after the transform?
generate_ray_differentials() normalizes the ray direction internally, but the final render_from_camera transformation can result in a non-normalized vector. In debug mode, this causes the debug_assert!() to fail which checks if the ray direction is normalized.
Now, I don't know if this impacts the final image in a meaningful way - scenarios where we strictly need the direction normalized, we should already normalize it.
Should we just normalize the direction at the end of generate_ray_differential() after the transform?