Change Scene trait to account for material data

This commit is contained in:
hal8174 2025-08-22 21:48:07 +02:00
parent 76448ed442
commit 2bc5ec93fe
Signed by: hal8174
SSH key fingerprint: SHA256:NN98ZYwnrreQLSOV/g+amY7C3yL/mS1heD7bi5t6PPw
19 changed files with 306 additions and 124 deletions

View file

@ -58,5 +58,13 @@ fn main() -> ImageResult<()> {
let r = PathTracerImportance::new(400, 400);
render_image(&r, &s.get_scene(), &c, "test.exr", 1048)
let s = s.get_scene();
match &s {
ray_tracing_scene::examples::ExampleSceneEnum::AccelerationStructureScene(s) => {
render_image(&r, s, &c, "test.exr", 1048)
}
ray_tracing_scene::examples::ExampleSceneEnum::TriangleBVH(s) => {
render_image(&r, s, &c, "test.exr", 1048)
}
}
}