diff --git a/src/client/game.cpp b/src/client/game.cpp index 830df0376..058619879 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -420,11 +420,11 @@ public: float volumetric_light_strength = lighting.volumetric_light_strength; m_volumetric_light_strength_pixel.set(&volumetric_light_strength, services); - - core::vector3df beta_r0 = lighting.volumetric_beta_r0; - m_volumetric_beta_r0_vertex.set(beta_r0, services); - m_volumetric_beta_r0_pixel.set(beta_r0, services); } + + core::vector3df beta_r0 = lighting.volumetric_beta_r0; + m_volumetric_beta_r0_vertex.set(beta_r0, services); + m_volumetric_beta_r0_pixel.set(beta_r0, services); } void onSetMaterial(const video::SMaterial &material) override