diffuse path tracing

This commit is contained in:
CDaut 2023-11-28 01:02:12 +01:00
parent 8cb5476588
commit 44514117cd
10 changed files with 62 additions and 46 deletions

View file

@ -49,6 +49,7 @@ fn main() {
&args.gltf_file_path)
.expect(&*format!("Failed to load glTF file {}", &args.gltf_file_path));
println!("Path tracing image. Columns finished:");
let mut radiosity_buffer: Vec<Vec<Vector4<f32>>> = match render(scenes, &args).lock() {
Ok(buffer) => {buffer.to_vec()}
Err(_) => {panic!("Unable to lock radiosity buffer!")}
@ -64,6 +65,6 @@ fn main() {
let output_image =
store_colors_to_image(as_colors);
output_image.save("result_image.png").expect("Unable to save image!");
output_image.save("../output_image.png").expect("Unable to save image!");
}