mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:38:02 +02:00
Return copy of Light from LightStage
This commit is contained in:
parent
c704a8d8c5
commit
ec496f1907
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ void LightStage::Shadow::setKeylightFrustum(ViewFrustum* viewFrustum, float zBac
|
||||||
_projection = ortho;
|
_projection = ortho;
|
||||||
}
|
}
|
||||||
|
|
||||||
const LightStage::LightPointer& LightStage::addLight(model::LightPointer light) {
|
const LightStage::LightPointer LightStage::addLight(model::LightPointer light) {
|
||||||
Shadow stageShadow{light};
|
Shadow stageShadow{light};
|
||||||
LightPointer stageLight = std::make_shared<Light>(std::move(stageShadow));
|
LightPointer stageLight = std::make_shared<Light>(std::move(stageShadow));
|
||||||
lights.push_back(stageLight);
|
lights.push_back(stageLight);
|
||||||
|
|
|
@ -53,7 +53,7 @@ public:
|
||||||
using LightPointer = std::shared_ptr<Light>;
|
using LightPointer = std::shared_ptr<Light>;
|
||||||
using Lights = std::vector<LightPointer>;
|
using Lights = std::vector<LightPointer>;
|
||||||
|
|
||||||
const LightPointer& addLight(model::LightPointer light);
|
const LightPointer addLight(model::LightPointer light);
|
||||||
// TODO: removeLight
|
// TODO: removeLight
|
||||||
|
|
||||||
Lights lights;
|
Lights lights;
|
||||||
|
|
Loading…
Reference in a new issue