aboutsummaryrefslogtreecommitdiff
path: root/src/client/shadows/dynamicshadowsrender.h
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2022-05-26 22:28:34 +0200
committerGitHub <noreply@github.com>2022-05-26 22:28:34 +0200
commitef22c0206f225dbccd67bff9fb888867c63039b3 (patch)
treed83e1f33bbb2aee1da256c853ea49e197fb3f5f2 /src/client/shadows/dynamicshadowsrender.h
parent8b74257bf3cbb54e78614ac6aaaba79adf75cc8e (diff)
downloadhax-minetest-server-ef22c0206f225dbccd67bff9fb888867c63039b3.tar.gz
hax-minetest-server-ef22c0206f225dbccd67bff9fb888867c63039b3.zip
Force-update shadows when the world is changed (#12364)
Diffstat (limited to 'src/client/shadows/dynamicshadowsrender.h')
-rw-r--r--src/client/shadows/dynamicshadowsrender.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/shadows/dynamicshadowsrender.h b/src/client/shadows/dynamicshadowsrender.h
index 0e4ef6b70..2e3b58f6f 100644
--- a/src/client/shadows/dynamicshadowsrender.h
+++ b/src/client/shadows/dynamicshadowsrender.h
@@ -74,6 +74,7 @@ public:
void removeNodeFromShadowList(scene::ISceneNode *node);
void update(video::ITexture *outputTarget = nullptr);
+ void setForceUpdateShadowMap() { m_force_update_shadow_map = true; }
void drawDebug();
video::ITexture *get_texture()
@@ -131,6 +132,7 @@ private:
bool m_shadows_enabled;
bool m_shadows_supported;
bool m_shadow_map_colored;
+ bool m_force_update_shadow_map;
u8 m_map_shadow_update_frames; /* Use this number of frames to update map shaodw */
u8 m_current_frame{0}; /* Current frame */
f32 m_perspective_bias_xy;