mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 02:09:41 +00:00
properly initialize light settings
This commit is contained in:
parent
4b48e62b64
commit
1e52ca2b64
1 changed files with 2 additions and 2 deletions
|
@ -884,8 +884,6 @@ namespace SceneUtil
|
|||
std::string lightingMethodString = Settings::Manager::getString("lighting method", "Shaders");
|
||||
auto lightingMethod = LightManager::getLightingMethodFromString(lightingMethodString);
|
||||
|
||||
updateSettings();
|
||||
|
||||
static bool hasLoggedWarnings = false;
|
||||
|
||||
if (lightingMethod == LightingMethod::SingleUBO && !hasLoggedWarnings)
|
||||
|
@ -904,6 +902,8 @@ namespace SceneUtil
|
|||
else
|
||||
initSingleUBO(targetLights);
|
||||
|
||||
updateSettings();
|
||||
|
||||
getOrCreateStateSet()->addUniform(new osg::Uniform("PointLightCount", 0));
|
||||
|
||||
addCullCallback(new LightManagerCullCallback(this));
|
||||
|
|
Loading…
Reference in a new issue