Remove these extra brackets
I don't know why I put them there, and I'm not going to `git bisect` to figure it out. They're just going away.
This commit is contained in:
@@ -46,12 +46,10 @@ fn ray_color(r: Ray, surface: &Hittable, depth: u32, rng: &mut SmallRng) -> Vec3
|
||||
// when the else path is taken. This is a problem for a function
|
||||
// that returns Vec3 and not ().
|
||||
|
||||
{
|
||||
// when nothing is struck, return sky color
|
||||
let unitdir = Vec3::as_unit(r.dir);
|
||||
let t = 0.5 * (unitdir.y + 1.0);
|
||||
Vec3::ones() * (1.0 - t) + SKY_COLOR * t
|
||||
}
|
||||
// when nothing is struck, return sky color
|
||||
let unitdir = Vec3::as_unit(r.dir);
|
||||
let t = 0.5 * (unitdir.y + 1.0);
|
||||
Vec3::ones() * (1.0 - t) + SKY_COLOR * t
|
||||
}
|
||||
|
||||
fn sample_pixel(
|
||||
|
||||
Reference in New Issue
Block a user