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:
parent
0cf1c47f6c
commit
6f17876e86
6 changed files with 22 additions and 19 deletions
|
@ -1867,7 +1867,8 @@ void Server::SendSetSky(session_t peer_id, const SkyboxParams ¶ms)
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue