mirror of
https://github.com/minetest/minetest.git
synced 2024-08-19 21:14:15 +02:00
Fix fog moon tint not working
This commit is contained in:
parent
abf353c178
commit
a4768d1638
@ -490,9 +490,9 @@ void Sky::update(float time_of_day, float time_brightness,
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
pointcolor_moon_f = video::SColorf(
|
pointcolor_moon_f = video::SColorf(
|
||||||
(m_sky_params.fog_moon_tint.getRed() / 255) * pointcolor_light,
|
(m_sky_params.fog_moon_tint.getRed() / 255.0f) * pointcolor_light,
|
||||||
(m_sky_params.fog_moon_tint.getGreen() / 255) * pointcolor_light,
|
(m_sky_params.fog_moon_tint.getGreen() / 255.0f) * pointcolor_light,
|
||||||
(m_sky_params.fog_moon_tint.getBlue() / 255) * pointcolor_light,
|
(m_sky_params.fog_moon_tint.getBlue() / 255.0f) * pointcolor_light,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user