sky sprites rotation fix
This commit is contained in:
parent
1c99dfa180
commit
7e4db6357b
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user