1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Support skybox textures with alpha channel

This commit is contained in:
MirceaKitsune 2025-04-22 23:37:37 +03:00
parent 0cf1c47f6c
commit 6f17876e86
6 changed files with 22 additions and 19 deletions

View file

@ -1867,7 +1867,8 @@ void Server::SendSetSky(session_t peer_id, const SkyboxParams &params)
pkt << (u16) params.textures.size();
for (const std::string &texture : params.textures)
pkt << texture;
} else if (params.type == "regular") {
}
if (params.type == "regular" || params.type == "skybox") {
auto &c = params.sky_color;
pkt << c.day_sky << c.day_horizon << c.dawn_sky << c.dawn_horizon
<< c.night_sky << c.night_horizon << c.indoors;