Change Scene trait to account for material data
This commit is contained in:
parent
76448ed442
commit
2bc5ec93fe
19 changed files with 306 additions and 124 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue