diff options
author | x2048 <codeforsmile@gmail.com> | 2023-01-06 22:33:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 22:33:25 +0100 |
commit | 6d45c243f85942b20dab58753e735ec89a68f710 (patch) | |
tree | bfe6207d73d1b111af82ea9e5794bdaac4ce26e3 /src/server.cpp | |
parent | 2715cc8bf68a2cc8cd583cd5b0bb732ee13a1b49 (diff) | |
download | minetest-6d45c243f85942b20dab58753e735ec89a68f710.tar.xz |
Add dynamic exposure correction (#12959)
* Add uniform for frame delta time
* Adjust exposure in logarithmic (EV) space
* Add network support and LUA API
* Add testing mod
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index ee08b45fd..a1171f404 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1866,6 +1866,13 @@ void Server::SendSetLighting(session_t peer_id, const Lighting &lighting) pkt << lighting.shadow_intensity; pkt << lighting.saturation; + pkt << lighting.exposure.luminance_min + << lighting.exposure.luminance_max + << lighting.exposure.exposure_correction + << lighting.exposure.speed_dark_bright + << lighting.exposure.speed_bright_dark + << lighting.exposure.center_weight_power; + Send(&pkt); } |