diffuse path tracing
This commit is contained in:
parent
8cb5476588
commit
44514117cd
10 changed files with 62 additions and 46 deletions
|
|
@ -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!");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue