1
0
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:
Alexei Kotov 2024-01-06 21:58:12 +03:00
parent 1f26485c47
commit 9b8d685578

View File

@ -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)