diff --git a/components/fx/stateupdater.hpp b/components/fx/stateupdater.hpp index f1a4cd89f3..9b7a25286a 100644 --- a/components/fx/stateupdater.hpp +++ b/components/fx/stateupdater.hpp @@ -43,6 +43,7 @@ namespace fx void setSunPos(const osg::Vec4f& pos, bool night) { mData.get() = pos; + mData.get().normalize(); if (night) mData.get().z() *= -1.f;