feat: distinct material palette for BSP 2 courtyard
This commit is contained in:
parent
2fb4042fba
commit
9f657ffcf9
2 changed files with 25 additions and 10 deletions
|
|
@ -4,7 +4,7 @@ use alloc::collections::BTreeMap;
|
|||
|
||||
use crate::chunk::{Chunk, ChunkId};
|
||||
use crate::math::Vec3;
|
||||
use crate::procgen::{ProcgenParams, generate_rooms};
|
||||
use crate::procgen::{ProcgenParams, generate};
|
||||
|
||||
pub struct World {
|
||||
active: Option<ChunkId>,
|
||||
|
|
@ -69,7 +69,7 @@ impl World {
|
|||
..Default::default()
|
||||
};
|
||||
let p = params.unwrap_or(&default_params);
|
||||
let bsp = generate_rooms(p);
|
||||
let bsp = generate(p);
|
||||
self.chunks.insert(chunk_id, Chunk::Bsp { id, bsp, version: 1 });
|
||||
}
|
||||
self.chunks.get(&chunk_id).unwrap()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue