mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Various changes, fixes and features
This commit is contained in:
parent
b6c099073f
commit
4b88a32c1c
17 changed files with 409 additions and 261 deletions
|
@ -1913,7 +1913,7 @@ void Server::SendOverrideDayNightRatio(session_t peer_id, bool do_override,
|
|||
Send(&pkt);
|
||||
}
|
||||
|
||||
void Server::SendSetLighting(session_t peer_id, const Lighting &lighting)
|
||||
void Server::SendSetLighting(session_t peer_id, const Lighting & lighting)
|
||||
{
|
||||
NetworkPacket pkt(TOCLIENT_SET_LIGHTING,
|
||||
4, peer_id);
|
||||
|
@ -1932,6 +1932,13 @@ void Server::SendSetLighting(session_t peer_id, const Lighting &lighting)
|
|||
pkt << lighting.bloom_intensity << lighting.bloom_strength_factor <<
|
||||
lighting.bloom_radius;
|
||||
pkt << lighting.artificial_light_color;
|
||||
pkt << lighting.volumetric_beta_r0;
|
||||
pkt << lighting.vignette.dark
|
||||
<< lighting.vignette.bright
|
||||
<< lighting.vignette.power;
|
||||
pkt << lighting.cdl.slope;
|
||||
pkt << lighting.cdl.offset;
|
||||
pkt << lighting.cdl.power;
|
||||
|
||||
Send(&pkt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue