summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-02 21:50:40 +0700
committerRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-02 21:50:40 +0700
commit7301f5af4fc7cb7bc13a9d559183f2f095de47d0 (patch)
tree05c54e4ce19b925f2fffacc8158041728e23bbec /src/main.rs
parentece36a7364c3c5e7edd157c389cd8079e21c3423 (diff)
upd metal fuzz
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 489ef41..fa6c194 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -18,15 +18,16 @@ fn main() {
let mut world = HittableList::new();
world.push(
- Sphere::new(Point3::new(0.6, -0.3, -1.0), 0.3, MaterialType::Metal, Color::new(0.8, 0.0, 0.0))
+ Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0, MaterialType::Diffuse, Color::new(0.8, 0.8, 0.0), 0.0)
);
-
world.push(
- Sphere::new(Point3::new(0.0, 0.0, -1.0), 0.5, MaterialType::Diffuse, Color::new(0.7, 0.7, 0.7))
+ Sphere::new(Point3::new(0.0, 0.0, -1.2), 0.5, MaterialType::Diffuse, Color::new(0.1, 0.2, 0.5), 0.0)
+ );
+ world.push(
+ Sphere::new(Point3::new(-1.0, 0.0, -1.0), 0.5, MaterialType::Metal, Color::new(0.8, 0.8, 0.8), 0.1)
);
-
world.push(
- Sphere::new(Point3::new(0.0, -100.5, -1.0), 100.0, MaterialType::Diffuse, Color::new(0.2, 0.2, 0.2))
+ Sphere::new(Point3::new(1.0, 0.0, -1.0), 0.5, MaterialType::Metal, Color::new(0.8, 0.6, 0.2), 0.0)
);
let camera = Camera::new();