fn infinite_color(ray: &Ray) -> Vector3<f32> {
    let background_color = 0.5 * (ray.direction[1] + 1.0) as f32;
    let result = Vector3::new(1.0 - background_color, 1.0 - background_color, 1.0);
    result
}
/// The colour to draw if a ray goes to infinity.
///
/// A very useful debugging tool from Peter Shirley's "Ray Tracing in One Weekend".
The colour to draw if a ray goes to infinity.
A very useful debugging tool from Peter Shirley's "Ray Tracing in One Weekend".
The colour to draw if a ray goes to infinity . A very useful debugging tool from Peter Shirley ' s " Ray Tracing in One Weekend " .
fn infinite_color(ray: &Ray) -> Vector3<f32> {
    let background_color = 0.5 * (ray.direction[1] + 1.0) as f32;
    let result = Vector3::new(1.0 - background_color, 1.0 - background_color, 1.0);
    result
}
fn infinite_color ( ray : & Ray ) -> Vector3 < f32 > { let background_color = 0.5 * ( ray . direction [ 1 ] + 1.0 ) as f32 ; let result = Vector3 :: new ( 1.0 - background_color , 1.0 - background_color , 1.0 ) ; result }
The colour to draw if a ray goes to infinity.
The colour to draw if a ray goes to infinity .
ray
&Ray
ray
&Ray