moved light common to its own file

moved esm4light to it's own file
This commit is contained in:
florent.teppe 2023-02-07 11:30:57 +01:00
parent dc961e3189
commit 486d15b19e
18 changed files with 188 additions and 138 deletions

View file

@ -5,9 +5,9 @@
#include <osgParticle/ParticleSystem>
#include <components/esm/esmbridge.hpp>
#include <components/esm3/loadligh.hpp>
#include <components/fallback/fallback.hpp>
#include <components/sceneutil/lightcommon.hpp>
#include "lightcontroller.hpp"
#include "lightmanager.hpp"
@ -87,7 +87,7 @@ namespace SceneUtil
}
osg::ref_ptr<LightSource> addLight(
osg::Group* node, const ESM::LightCommon& esmLight, unsigned int lightMask, bool isExterior)
osg::Group* node, const SceneUtil::LightCommon& esmLight, unsigned int lightMask, bool isExterior)
{
SceneUtil::FindByNameVisitor visitor("AttachLight");
node->accept(visitor);
@ -106,7 +106,7 @@ namespace SceneUtil
}
osg::ref_ptr<LightSource> createLightSource(
const ESM::LightCommon& esmLight, unsigned int lightMask, bool isExterior, const osg::Vec4f& ambient)
const SceneUtil::LightCommon& esmLight, unsigned int lightMask, bool isExterior, const osg::Vec4f& ambient)
{
osg::ref_ptr<SceneUtil::LightSource> lightSource(new SceneUtil::LightSource);
osg::ref_ptr<osg::Light> light(new osg::Light);