mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added terracotta LOD
This commit is contained in:
parent
9d83b046a6
commit
79bd3182eb
BIN
assets/voxygen/lod/terracotta_house.obj
(Stored with Git LFS)
Normal file
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
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
BIN
assets/voxygen/lod/terracotta_yard.obj
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -34,6 +34,9 @@ pub enum ObjectKind {
|
||||
Arena,
|
||||
SavannahHut,
|
||||
SavannahPit,
|
||||
TerracottaPalace,
|
||||
TerracottaHouse,
|
||||
TerracottaYard,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
|
@ -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(),
|
||||
}
|
||||
|
@ -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,
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user