Add eval to visualizer and fix pbr error

This commit is contained in:
hal8174 2024-12-26 00:57:57 +01:00
parent 109a72c19a
commit 3a37a72f56
10 changed files with 105 additions and 55 deletions

View file

@ -47,7 +47,7 @@ where
}
if let Some(material) = i.material() {
alpha *= material.eval(w_in, w_out, rng) * w_out.y();
alpha *= material.eval(w_in, w_out, rng) * w_out.y() * 2.0 * FloatConsts::PI;
} else {
return sum;
}