mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:25:31 +02:00
REmoving warnings for unused var
This commit is contained in:
parent
4c1bf6af47
commit
a8086764da
2 changed files with 5 additions and 3 deletions
|
@ -740,8 +740,8 @@ void DefaultLightingSetup::run(const RenderContextPointer& renderContext) {
|
|||
_defaultLight = lp;
|
||||
|
||||
// Add the global light to the light stage (for later shadow rendering)
|
||||
auto defaultLightID = lightStage->addLight(lp);
|
||||
lightStage->addShadow(defaultLightID);
|
||||
_defaultLightID = lightStage->addLight(lp);
|
||||
lightStage->addShadow(_defaultLightID);
|
||||
}
|
||||
|
||||
auto backgroundStage = renderContext->_scene->getStage<BackgroundStage>();
|
||||
|
@ -754,7 +754,7 @@ void DefaultLightingSetup::run(const RenderContextPointer& renderContext) {
|
|||
_defaultBackground = background;
|
||||
|
||||
// Add the global light to the light stage (for later shadow rendering)
|
||||
auto defaultBackgroundID = backgroundStage->addBackground(_defaultBackground);
|
||||
_defaultBackgroundID = backgroundStage->addBackground(_defaultBackground);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -180,7 +180,9 @@ public:
|
|||
|
||||
protected:
|
||||
model::LightPointer _defaultLight;
|
||||
LightStage::Index _defaultLightID{ LightStage::INVALID_INDEX };
|
||||
model::SunSkyStagePointer _defaultBackground;
|
||||
BackgroundStage::Index _defaultBackgroundID{ BackgroundStage::INVALID_INDEX };
|
||||
model::SkyboxPointer _defaultSkybox { new ProceduralSkybox() };
|
||||
gpu::TexturePointer _defaultSkyboxTexture;
|
||||
gpu::TexturePointer _defaultSkyboxAmbientTexture;
|
||||
|
|
Loading…
Reference in a new issue