Implemented Treeco's z-only LoD suggestion

This commit is contained in:
Joshua Barretto 2020-04-25 13:26:09 +01:00
parent 5bdc420726
commit 8bf5709ddf
3 changed files with 268 additions and 24 deletions

File diff suppressed because it is too large Load Diff

View File

@ -140,16 +140,17 @@ impl Civs {
e * sz as i32 + sz as i32 / 2
});
let mut rng = ctx.reseed().rng;
let world_site = match &site.kind {
SiteKind::Settlement => WorldSite::from(Settlement::generate(
wpos,
Some(ctx.sim),
&mut ctx.reseed().rng,
&mut rng,
)),
SiteKind::Dungeon => WorldSite::from(Dungeon::generate(
wpos,
Some(ctx.sim),
&mut ctx.reseed().rng,
&mut rng,
)),
};

View File

@ -207,7 +207,7 @@ impl Archetype for House {
let floor = make_block(100, 75, 50);
let wall = make_block(200, 180, 150).with_priority(facade_layer);
let roof = make_block(self.roof_color.r, self.roof_color.g, self.roof_color.b)
.with_priority(facade_layer);
.with_priority(facade_layer - 1);
let empty = BlockMask::nothing();
let internal = BlockMask::new(Block::empty(), structural_layer);
let end_window = BlockMask::new(