1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Minor rendering code fixes (#15399)

* Fix line numbers in shader errors
* Fix uninitialized variables in shadow code
This commit is contained in:
grorp 2024-11-12 10:52:20 +01:00 committed by GitHub
parent a5e3fca40c
commit af61de7777
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View file

@ -21,8 +21,9 @@
ShadowRenderer::ShadowRenderer(IrrlichtDevice *device, Client *client) :
m_smgr(device->getSceneManager()), m_driver(device->getVideoDriver()),
m_client(client), m_current_frame(0),
m_perspective_bias_xy(0.8), m_perspective_bias_z(0.5)
m_client(client), m_shadow_strength(0.0f), m_shadow_tint(255, 0, 0, 0),
m_time_day(0.0f), m_force_update_shadow_map(false), m_current_frame(0),
m_perspective_bias_xy(0.8f), m_perspective_bias_z(0.5f)
{
(void) m_client;