aboutsummaryrefslogtreecommitdiff
path: root/src/client/clientenvironment.h
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2023-01-06 22:33:25 +0100
committerGitHub <noreply@github.com>2023-01-06 22:33:25 +0100
commit6d45c243f85942b20dab58753e735ec89a68f710 (patch)
treebfe6207d73d1b111af82ea9e5794bdaac4ce26e3 /src/client/clientenvironment.h
parent2715cc8bf68a2cc8cd583cd5b0bb732ee13a1b49 (diff)
downloadminetest-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/client/clientenvironment.h')
-rw-r--r--src/client/clientenvironment.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/clientenvironment.h b/src/client/clientenvironment.h
index 87820fbe8..f5d46deb5 100644
--- a/src/client/clientenvironment.h
+++ b/src/client/clientenvironment.h
@@ -144,6 +144,7 @@ public:
void updateFrameTime(bool is_paused);
u64 getFrameTime() const { return m_frame_time; }
+ u64 getFrameTimeDelta() const { return m_frame_dtime; }
private:
ClientMap *m_map;
@@ -158,5 +159,6 @@ private:
std::list<std::string> m_player_names;
v3s16 m_camera_offset;
u64 m_frame_time = 0;
+ u64 m_frame_dtime = 0;
u64 m_frame_time_pause_accumulator = 0;
};