diffuse raytracing

This commit is contained in:
zomseffen 2025-01-17 11:10:39 +01:00
parent 729fcb8559
commit 86135cb2ce
6 changed files with 57 additions and 24 deletions
src/scene

View file

@ -9,7 +9,7 @@ extern crate rand;
pub const CHUNK_SIZE_EXPONENT: u32 = 4;
pub const CHUNK_SIZE: usize = (2 as usize).pow(CHUNK_SIZE_EXPONENT);
pub const MAX_TREE_DEPTH: usize = 2;
pub const MAX_TREE_DEPTH: usize = CHUNK_SIZE_EXPONENT as usize - 2;
pub const MIN_CHUNK_SIZE: usize = CHUNK_SIZE / (2 as usize).pow(MAX_TREE_DEPTH as u32);
#[derive(Clone, Debug)]