mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
change: flip the planet
This commit is contained in:
parent
c481997b82
commit
d54bb5bf54
2 changed files with 8 additions and 8 deletions
|
|
@ -55,12 +55,12 @@ model::Model VcmModel::squashed() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
static const std::unordered_map<std::string, int> side_indices {
|
static const std::unordered_map<std::string, int> side_indices {
|
||||||
{"east", 0},
|
{"west", 0}, // -X
|
||||||
{"west", 1},
|
{"east", 1}, // +X
|
||||||
{"bottom", 2},
|
{"bottom", 2}, // -Y
|
||||||
{"top", 3},
|
{"top", 3}, // +Y
|
||||||
{"south", 4},
|
{"north", 4}, // -Z
|
||||||
{"north", 5},
|
{"south", 5}, // +Z
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool to_boolean(const xml::Attribute& attr) {
|
static bool to_boolean(const xml::Attribute& attr) {
|
||||||
|
|
|
||||||
|
|
@ -83,12 +83,12 @@ static util::TextureRegion determine_texture_region(
|
||||||
const Assets& assets, const std::string& texture
|
const Assets& assets, const std::string& texture
|
||||||
) {
|
) {
|
||||||
static std::array<std::string, 6> faces {
|
static std::array<std::string, 6> faces {
|
||||||
"blocks:dbg_east",
|
|
||||||
"blocks:dbg_west",
|
"blocks:dbg_west",
|
||||||
|
"blocks:dbg_east",
|
||||||
"blocks:dbg_bottom",
|
"blocks:dbg_bottom",
|
||||||
"blocks:dbg_top",
|
"blocks:dbg_top",
|
||||||
"blocks:dbg_south",
|
|
||||||
"blocks:dbg_north",
|
"blocks:dbg_north",
|
||||||
|
"blocks:dbg_south",
|
||||||
};
|
};
|
||||||
|
|
||||||
if (texture.length() < 2 || texture.at(0) != '$') {
|
if (texture.length() < 2 || texture.at(0) != '$') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue