adds first connection between octtree volumes
This commit is contained in:
parent
b559bd5e08
commit
4e50b1a12e
5 changed files with 374 additions and 109 deletions
src/scene
|
@ -7,7 +7,7 @@ use crate::primitives::cube::Cube;
|
|||
|
||||
extern crate rand;
|
||||
|
||||
pub const CHUNK_SIZE_EXPONENT: u32 = 6;
|
||||
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 = CHUNK_SIZE_EXPONENT as usize - 2;
|
||||
pub const MIN_CHUNK_SIZE: usize = CHUNK_SIZE / (2 as usize).pow(MAX_TREE_DEPTH as u32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue