Skip to content

Commit e8b00fd

Browse files
paramatnerzhul
authored andcommittedMay 5, 2017
Clouds API: Fix yellow clouds at dawn and dusk (#5707)
1 parent 7c82f1e commit e8b00fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/clouds.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ void Clouds::update(v2f camera_p, video::SColorf color_diffuse)
360360
m_camera_pos = camera_p;
361361
m_color.r = MYMIN(MYMAX(color_diffuse.r * m_params.color_bright.getRed(),
362362
m_params.color_ambient.getRed()), 255) / 255.0f;
363-
m_color.g = MYMIN(MYMAX(color_diffuse.r * m_params.color_bright.getGreen(),
363+
m_color.g = MYMIN(MYMAX(color_diffuse.g * m_params.color_bright.getGreen(),
364364
m_params.color_ambient.getGreen()), 255) / 255.0f;
365365
m_color.b = MYMIN(MYMAX(color_diffuse.b * m_params.color_bright.getBlue(),
366366
m_params.color_ambient.getBlue()), 255) / 255.0f;

0 commit comments

Comments
 (0)
Please sign in to comment.