Added terracotta LOD

This commit is contained in:
Treeco 2024-03-27 01:37:58 +00:00
parent 9d83b046a6
commit 79bd3182eb
6 changed files with 39 additions and 0 deletions

BIN
assets/voxygen/lod/terracotta_house.obj (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/lod/terracotta_palace.obj (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/lod/terracotta_yard.obj (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -34,6 +34,9 @@ pub enum ObjectKind {
Arena,
SavannahHut,
SavannahPit,
TerracottaPalace,
TerracottaHouse,
TerracottaYard,
}
#[derive(Clone, Debug, Serialize, Deserialize)]

View File

@ -114,6 +114,18 @@ impl Lod {
lod::ObjectKind::SavannahPit,
make_lod_object("savannah_pit", renderer),
),
(
lod::ObjectKind::TerracottaPalace,
make_lod_object("terracotta_palace", renderer),
),
(
lod::ObjectKind::TerracottaHouse,
make_lod_object("terracotta_house", renderer),
),
(
lod::ObjectKind::TerracottaYard,
make_lod_object("terracotta_yard", renderer),
),
]
.into(),
}

View File

@ -708,6 +708,21 @@ impl World {
Rgb::black(),
lod::ObjectKind::SavannahPit,
)),
site2::plot::PlotKind::TerracottaPalace(_) => Some((
site.tile_wpos(plot.root_tile),
Rgb::black(),
lod::ObjectKind::TerracottaPalace,
)),
site2::plot::PlotKind::TerracottaHouse(_) => Some((
site.tile_wpos(plot.root_tile),
Rgb::black(),
lod::ObjectKind::TerracottaHouse,
)),
site2::plot::PlotKind::TerracottaYard(_) => Some((
site.tile_wpos(plot.root_tile),
Rgb::black(),
lod::ObjectKind::TerracottaYard,
)),
_ => None,
})
})