Skip to content

Commit faee780

Browse files
committed
🎶 remove comments
1 parent ba045fc commit faee780

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn main() {
4646
for b in -11..11 {
4747
let material = rand::random::<f64>();
4848
let center = Vec3D::new((a as f64) + 0.9 * rand::random::<f64>(), 0.2, (b as f64) + 0.9 * rand::random::<f64>());
49-
if (center - Vec3D::new(4.0, 0.2, 0.0)).mag() > 0.9 {
49+
if (center - Vec3D::new(4.0, 0.2, 0.0)).mag() > 0.51 {
5050
if material < 0.8 {
5151
world.list.push(Sphere::new(
5252
center,

src/utils.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pub fn color(ray: Ray, world: &Hitable, depth: i32) -> Vec3D {
3232
new_color.y * attenuation.y,
3333
new_color.z * attenuation.z,
3434
);
35-
// return new_color.cross(attenuation);
3635
} else {
3736
return Vec3D::new(0.0, 0.0, 0.0);
3837
}

0 commit comments

Comments
 (0)