sky sprites rotation fix
This commit is contained in:
@@ -132,8 +132,8 @@ void Skybox::draw(
|
|||||||
if (!sprite.emissive) {
|
if (!sprite.emissive) {
|
||||||
tint *= 0.6f+cos(angle)*0.4;
|
tint *= 0.6f+cos(angle)*0.4;
|
||||||
}
|
}
|
||||||
batch3d->sprite(camera->position+pos, up,
|
batch3d->sprite(camera->position+pos, glm::vec3(0, 0, 1),
|
||||||
glm::vec3(0, 0, -1), 1, 1, UVRegion(), tint);
|
up, 1, 1, UVRegion(), tint);
|
||||||
}
|
}
|
||||||
|
|
||||||
drawStars(camera, angle, opacity);
|
drawStars(camera, angle, opacity);
|
||||||
|
|||||||
@@ -196,11 +196,8 @@ Panel* create_worlds_panel(Engine* engine) {
|
|||||||
panel->maxLength(400);
|
panel->maxLength(400);
|
||||||
|
|
||||||
auto paths = engine->getPaths();
|
auto paths = engine->getPaths();
|
||||||
|
|
||||||
auto folders = paths->scanForWorlds();
|
for (auto folder : paths->scanForWorlds()) {
|
||||||
|
|
||||||
fs::path worldsFolder = paths->getWorldsFolder();
|
|
||||||
for (auto folder : folders) {
|
|
||||||
auto name = folder.filename().u8string();
|
auto name = folder.filename().u8string();
|
||||||
auto namews = util::str2wstr_utf8(name);
|
auto namews = util::str2wstr_utf8(name);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user