1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-16 03:55:24 +01:00

Force-update shadows when the world is changed (#12364)

This commit is contained in:
x2048
2022-05-26 22:28:34 +02:00
committed by GitHub
parent 8b74257bf3
commit ef22c0206f
3 changed files with 19 additions and 6 deletions

View File

@@ -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;