Add more scenes
This commit is contained in:
parent
7d38e87f6a
commit
b11e7a7a78
8 changed files with 116 additions and 20 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue