Merge branch 'treeco/lod-models' into 'master'

Add savaannah and terracottaa LOD models

See merge request veloren/veloren!4394
This commit is contained in:
Marcel 2024-03-27 12:03:47 +00:00
commit 794af0207a
8 changed files with 66 additions and 0 deletions

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

Binary file not shown.

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

Binary file not shown.

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

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

View File

@ -106,6 +106,26 @@ impl Lod {
), ),
(lod::ObjectKind::Palm, make_lod_object("palm", renderer)), (lod::ObjectKind::Palm, make_lod_object("palm", renderer)),
(lod::ObjectKind::Arena, make_lod_object("arena", renderer)), (lod::ObjectKind::Arena, make_lod_object("arena", renderer)),
(
lod::ObjectKind::SavannahHut,
make_lod_object("savannah_hut", renderer),
),
(
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(), .into(),
} }

View File

@ -697,6 +697,32 @@ impl World {
Rgb::black(), Rgb::black(),
lod::ObjectKind::Arena, lod::ObjectKind::Arena,
)), )),
site2::plot::PlotKind::SavannahHut(_)
| site2::plot::PlotKind::SavannahWorkshop(_) => Some((
site.tile_wpos(plot.root_tile),
Rgb::black(),
lod::ObjectKind::SavannahHut,
)),
site2::plot::PlotKind::SavannahPit(_) => Some((
site.tile_wpos(plot.root_tile),
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, _ => None,
}) })
}) })