wip: parallelization

This commit is contained in:
djaidjai committed 2026-05-03 14:58:56 +02:00
1 parent eb90c36ae8
commit 10f9c0984d
23 files changed
+294 -211

No files matched your search

+2 -2
View File
@@ -122,7 +122,7 @@ impl Vec3 {
r_out_perp + r_out_parr
}
pub fn output(self) -> image::Rgb<u8> {
pub fn output(self) -> (u8, u8, u8) {
// gamma correction
let r = if self.x > 0. {
sqrt(self.x).clamp(0., 1.)
@@ -144,7 +144,7 @@ impl Vec3 {
let ig = (255.599 * g) as u8;
let ib = (255.599 * b) as u8;
image::Rgb([ir, ig, ib])
(ir, ig, ib)
}
pub fn clone(&self) -> Self {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.