mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-17 11:43:25 +00:00
lightmanager.cpp (#3121)
This commit is contained in:
parent
68db9869f5
commit
179f91276a
@ -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…
x
Reference in New Issue
Block a user