Add more scenes

This commit is contained in:
hal8174 2024-10-04 22:06:00 +02:00
parent 7d38e87f6a
commit b11e7a7a78
8 changed files with 116 additions and 20 deletions

View file

@ -33,10 +33,10 @@ where
let r = camera.forward(x, y, rng);
if let Some(i) = scene.intersect(r, 0.0, Float::INFINITY) {
Color::gray(1.0 / i.t())
// let c = 0.5 * (i.normal() + Dir3::new(1.0, 1.0, 1.0));
// Color::gray(1.0 / i.t())
let c = 0.5 * (i.normal() + Dir3::new(1.0, 1.0, 1.0));
// let c = i.normal();
// Color::new(c.x(), c.y(), c.z())
Color::new(c.x(), c.y(), c.z())
} else {
Color::black()
}