Add tev output
This commit is contained in:
parent
c517a836ee
commit
0a70fbd8d4
6 changed files with 148 additions and 9 deletions
|
|
@ -37,10 +37,10 @@ where
|
|||
let r = self.camera.forward(x, y, rng);
|
||||
|
||||
if let Some(i) = self.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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ where
|
|||
let w_in = frame.to_frame(-r.dir());
|
||||
|
||||
if let Some(light) = i.light() {
|
||||
sum += alpha * light.emit(w_in, rng) * w_in.y();
|
||||
sum += alpha * light.emit(w_in, rng);
|
||||
}
|
||||
|
||||
let w_out = if let Some(material) = i.material() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue