mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 06:36:39 +00:00
lightmanager.cpp (#3121)
This commit is contained in:
parent
68db9869f5
commit
179f91276a
1 changed files with 2 additions and 1 deletions
|
@ -1204,7 +1204,6 @@ namespace SceneUtil
|
|||
|
||||
const std::vector<LightManager::LightSourceViewBound>& LightManager::getLightsInViewSpace(osg::Camera *camera, const osg::RefMatrix* viewMatrix, size_t frameNum)
|
||||
{
|
||||
bool isReflection = isReflectionCamera(camera);
|
||||
osg::observer_ptr<osg::Camera> camPtr (camera);
|
||||
auto it = mLightsInViewSpace.find(camPtr);
|
||||
|
||||
|
@ -1212,6 +1211,8 @@ namespace SceneUtil
|
|||
{
|
||||
it = mLightsInViewSpace.insert(std::make_pair(camPtr, LightSourceViewBoundCollection())).first;
|
||||
|
||||
bool isReflection = isReflectionCamera(camera);
|
||||
|
||||
for (const auto& transform : mLights)
|
||||
{
|
||||
osg::Matrixf worldViewMat = transform.mWorldMatrix * (*viewMatrix);
|
||||
|
|
Loading…
Reference in a new issue