sky sprites rotation fix

This commit is contained in:
MihailRis 2024-01-26 05:04:46 +03:00
parent 1c99dfa180
commit 7e4db6357b
2 changed files with 4 additions and 7 deletions

View File

@ -132,8 +132,8 @@ void Skybox::draw(
if (!sprite.emissive) {
tint *= 0.6f+cos(angle)*0.4;
}
batch3d->sprite(camera->position+pos, up,
glm::vec3(0, 0, -1), 1, 1, UVRegion(), tint);
batch3d->sprite(camera->position+pos, glm::vec3(0, 0, 1),
up, 1, 1, UVRegion(), tint);
}
drawStars(camera, angle, opacity);

View File

@ -196,11 +196,8 @@ Panel* create_worlds_panel(Engine* engine) {
panel->maxLength(400);
auto paths = engine->getPaths();
auto folders = paths->scanForWorlds();
fs::path worldsFolder = paths->getWorldsFolder();
for (auto folder : folders) {
for (auto folder : paths->scanForWorlds()) {
auto name = folder.filename().u8string();
auto namews = util::str2wstr_utf8(name);