mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-17 22:39:17 +02:00
opengl33renderer: Adjust sun intensity based on overcast
This commit is contained in:
@@ -1875,7 +1875,7 @@ void opengl33_renderer::setup_environment_light(TEnvironmentType const Environme
|
||||
void opengl33_renderer::setup_sunlight_intensity( float const Factor ) {
|
||||
|
||||
m_sunlight.apply_intensity( Factor );
|
||||
light_ubs.lights[ 0 ].intensity = m_sunlight.factor;
|
||||
light_ubs.lights[ 0 ].intensity = m_sunlight.factor * (1.0f - Global.Overcast * 0.33f);
|
||||
light_ubs.ambient = m_sunlight.ambient * m_sunlight.factor;
|
||||
light_ubo->update( light_ubs );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user