1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-09 08:26:39 +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()); position.z() = 400.f - std::abs(position.x());
mSky->setSunDirection(position); 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) void RenderingManager::addCell(const MWWorld::CellStore* store)