mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-26 06:40:22 +00:00
Merge branch 'normalizedsun' into 'master'
Actually normalize the sun position exposed to post-processing See merge request OpenMW/openmw!3820
This commit is contained in:
commit
5ca8f7a00e
@ -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…
x
Reference in New Issue
Block a user