mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
sky sprites rotation fix
This commit is contained in:
parent
1c99dfa180
commit
7e4db6357b
2 changed files with 4 additions and 7 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue