fix: ambient brightness can return values greater 1

This commit is contained in:
commy2 2015-04-07 13:54:33 +02:00
parent 446a30e4fc
commit ad5aad60c7

View File

@ -11,4 +11,4 @@
*/
#include "script_component.hpp"
sunOrMoon * sunOrMoon * (1 - overcast * 0.25) + (moonIntensity/5 min 1) * (1 - overcast)
(sunOrMoon * sunOrMoon * (1 - overcast * 0.25) + (moonIntensity/5) * (1 - overcast)) min 1