Skip to content
Permalink
Browse files

Clouds API: Fix yellow clouds at dawn and dusk (#5707)

  • Loading branch information...
paramat authored and nerzhul committed May 5, 2017
1 parent 7c82f1e commit e8b00fdf987e9c689f3dbf9c22c0a6269250c3b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/clouds.cpp
@@ -360,7 +360,7 @@ void Clouds::update(v2f camera_p, video::SColorf color_diffuse)
m_camera_pos = camera_p;
m_color.r = MYMIN(MYMAX(color_diffuse.r * m_params.color_bright.getRed(),
m_params.color_ambient.getRed()), 255) / 255.0f;
m_color.g = MYMIN(MYMAX(color_diffuse.r * m_params.color_bright.getGreen(),
m_color.g = MYMIN(MYMAX(color_diffuse.g * m_params.color_bright.getGreen(),
m_params.color_ambient.getGreen()), 255) / 255.0f;
m_color.b = MYMIN(MYMAX(color_diffuse.b * m_params.color_bright.getBlue(),
m_params.color_ambient.getBlue()), 255) / 255.0f;

0 comments on commit e8b00fd

Please sign in to comment.
You can’t perform that action at this time.