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
3 changed files with 10 additions and 10 deletions

View File

@@ -118,11 +118,11 @@ class ShadowRenderer
std::vector<NodeToApply> m_shadow_node_array;
float m_shadow_strength;
video::SColor m_shadow_tint{ 255, 0, 0, 0 };
video::SColor m_shadow_tint;
float m_shadow_strength_gamma;
float m_shadow_map_max_distance;
float m_shadow_map_texture_size;
float m_time_day{0.0f};
float m_time_day;
int m_shadow_samples;
bool m_shadow_map_texture_32bit;
bool m_shadows_enabled;
@@ -130,7 +130,7 @@ class ShadowRenderer
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 */
u8 m_current_frame; /* Current frame */
f32 m_perspective_bias_xy;
f32 m_perspective_bias_z;