Actually normalize the sun position exposed to post-processing

ini_importer_tests
Alexei Kotov 11 months ago
parent 093d86353f
commit 422e455157

@ -43,6 +43,7 @@ namespace fx
void setSunPos(const osg::Vec4f& pos, bool night)
{
mData.get<SunPos>() = pos;
mData.get<SunPos>().normalize();
if (night)
mData.get<SunPos>().z() *= -1.f;

Loading…
Cancel
Save