fx: texture colouring
This commit is contained in:
1 parent
6a1e50fb7a
commit
194328d92f
2 files changed
+21
-4
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
||||
use image::{ExtendedColorType, ImageEncoder, codecs::png::PngEncoder};
|
||||
use log::{error, info};
|
||||
use log::{error, info, trace};
|
||||
use rayon::iter::IntoParallelIterator;
|
||||
use rayon::prelude::*;
|
||||
use std::{fs::File, sync::Arc, time::Instant};
|
||||
@@ -69,7 +69,7 @@ pub fn render_chunk(chunk: &mut [u8], scene: &Scene, y: u32) {
|
||||
chunk[(i * 3) as usize + 1] = g;
|
||||
chunk[(i * 3) as usize + 2] = b;
|
||||
}
|
||||
info!("Line {}\tfinished.", y);
|
||||
trace!("Line {}\tfinished.", y);
|
||||
}
|
||||
|
||||
pub fn ray_colour(hittables: &Vec<Arc<dyn Hittable>>, r: &Ray, depth: u32) -> Colour {
|
||||
|
||||