mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 19:20:49 +00:00
Expose requested apparent sun position (not normalized) to post-processing
This commit is contained in:
parent
1f26485c47
commit
9b8d685578
@ -721,7 +721,7 @@ namespace MWRender
|
||||
position.z() = 400.f - std::abs(position.x());
|
||||
mSky->setSunDirection(position);
|
||||
|
||||
mPostProcessor->getStateUpdater()->setSunPos(mSunLight->getPosition(), mNight);
|
||||
mPostProcessor->getStateUpdater()->setSunPos(osg::Vec4f(position, 0.f), mNight);
|
||||
}
|
||||
|
||||
void RenderingManager::addCell(const MWWorld::CellStore* store)
|
||||
|
Loading…
x
Reference in New Issue
Block a user