Move Material to new module && TriangleBVH intersect && Seperate light and material

This commit is contained in:
hal8174 2024-09-30 21:13:50 +02:00
parent 50d3874467
commit b3fdef8837
18 changed files with 180 additions and 90 deletions

View file

@ -39,9 +39,9 @@ fn main() -> ImageResult<()> {
let s = cornel();
let c = BasicCamera::new(
640,
400,
Pos3::new(-10.0, 0.0, 0.0),
400,
Pos3::new(-6.0, 0.0, 0.0),
Dir3::new(1.0, 0.0, 0.0),
Dir3::up(),
Float::to_radians(90.0),
@ -49,5 +49,5 @@ fn main() -> ImageResult<()> {
let r = PathTracer::new(s, c);
render_image(r, "test.exr", 1024)
render_image(r, "test.exr", 1048)
}