Skip to content

Commit

Permalink
Make more interesting scene
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcol9232 committed Feb 11, 2022
1 parent 177f597 commit e0b00af
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
Binary file modified out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 31 additions & 31 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,42 @@ impl MainState {
fn new() -> MainState {
let mut main_scene = Scene::new(DIMS.0, DIMS.1, 90.0,
vec![
// Box::new(Sphere {
// centre: Point3::new(0.0, 1.0, -0.1),
// radius: 1.0,
// color: Color {
// r: 0.0,
// g: 1.0,
// b: 0.0,
// },
// }),
// Box::new(Sphere {
// centre: Point3::new(-2.0, -2.0, -7.0),
// radius: 1.0,
// color: Color {
// r: 1.0,
// g: 1.0,
// b: 1.0,
// },
// }),
// Box::new(Sphere {
// centre: Point3::new(2.0, -2.0, 4.0),
// radius: 1.0,
// color: Color {
// r: 0.0,
// g: 1.0,
// b: 0.0,
// },
// }),
Box::new(AxisAlignedCube {
centre: Point3::new(2.0, -1.5, -5.0),
size: 1.0,
Box::new(Sphere {
centre: Point3::new(0.0, 1.0, -0.1),
radius: 1.0,
color: Color {
r: 0.0,
g: 1.0,
b: 0.0,
},
}),
Box::new(Sphere {
centre: Point3::new(-2.0, -2.0, -7.0),
radius: 1.0,
color: Color {
r: 1.0,
g: 0.0,
g: 1.0,
b: 1.0,
},
}),
Box::new(Sphere {
centre: Point3::new(2.0, -2.0, 4.0),
radius: 1.0,
color: Color {
r: 0.0,
g: 1.0,
b: 0.0,
},
}),
// Box::new(AxisAlignedCube {
// centre: Point3::new(2.0, -1.5, -5.0),
// size: 1.0,
// color: Color {
// r: 1.0,
// g: 0.0,
// b: 0.0,
// },
// }),

Box::new(HorizontalPlane {
y: -6.0,
Expand Down

0 comments on commit e0b00af

Please sign in to comment.