Skip to content

Commit

Permalink
refactor: simple refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Flinner committed Aug 15, 2021
1 parent a987b65 commit 82cce5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bin/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ fn main() {
middle, right, left,
];

let mut camera = Camera::new(1920, 1080, FRAC_PI_3);
// let mut camera = Camera::new(1920, 1080, FRAC_PI_3);
// let mut camera = Camera::new(3840, 2160, FRAC_PI_3);
// let mut camera = Camera::new(300, 300, FRAC_PI_3);
let mut camera = Camera::new(300, 300, FRAC_PI_3);
camera.transform = Transformation::view(
Point::new(0.0, 1.5, -5.0),
Point::new(0.0, 1.0, 0.0),
Expand Down
2 changes: 1 addition & 1 deletion src/objects/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl World {
// reflection to begin with
if comps.object.material.reflective == 0.0
// end recurisive reflection
|| remaining<=0
|| remaining == 0
{
color::BLACK
} else {
Expand Down

0 comments on commit 82cce5e

Please sign in to comment.