mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
removed secondary camera tone mapping compensation during 360 screenshot
This commit is contained in:
parent
ba7ed32135
commit
75c5a99ee2
1 changed files with 0 additions and 5 deletions
|
@ -143,10 +143,6 @@ void Snapshot::save360Snapshot(const glm::vec3& cameraPosition,
|
||||||
secondaryCameraRenderConfig->enableSecondaryCameraRenderConfigs(true);
|
secondaryCameraRenderConfig->enableSecondaryCameraRenderConfigs(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize some secondary camera render config options for 360 snapshot capture
|
|
||||||
static_cast<ToneMappingConfig*>(qApp->getRenderEngine()->getConfiguration()->getConfig("SecondaryCameraJob.ToneMapping"))
|
|
||||||
->setCurve(0);
|
|
||||||
|
|
||||||
secondaryCameraRenderConfig->resetSizeSpectatorCamera(static_cast<int>(CUBEMAP_SIDE_PIXEL_DIMENSION),
|
secondaryCameraRenderConfig->resetSizeSpectatorCamera(static_cast<int>(CUBEMAP_SIDE_PIXEL_DIMENSION),
|
||||||
static_cast<int>(CUBEMAP_SIDE_PIXEL_DIMENSION));
|
static_cast<int>(CUBEMAP_SIDE_PIXEL_DIMENSION));
|
||||||
secondaryCameraRenderConfig->setProperty("attachedEntityId", "");
|
secondaryCameraRenderConfig->setProperty("attachedEntityId", "");
|
||||||
|
@ -209,7 +205,6 @@ void Snapshot::takeNextSnapshot() {
|
||||||
|
|
||||||
// Reset secondary camera render config
|
// Reset secondary camera render config
|
||||||
SecondaryCameraJobConfig* config = static_cast<SecondaryCameraJobConfig*>(qApp->getRenderEngine()->getConfiguration()->getConfig("SecondaryCamera"));
|
SecondaryCameraJobConfig* config = static_cast<SecondaryCameraJobConfig*>(qApp->getRenderEngine()->getConfiguration()->getConfig("SecondaryCamera"));
|
||||||
static_cast<ToneMappingConfig*>(qApp->getRenderEngine()->getConfiguration()->getConfig("SecondaryCameraJob.ToneMapping"))->setCurve(1);
|
|
||||||
config->resetSizeSpectatorCamera(qApp->getWindow()->geometry().width(), qApp->getWindow()->geometry().height());
|
config->resetSizeSpectatorCamera(qApp->getWindow()->geometry().width(), qApp->getWindow()->geometry().height());
|
||||||
config->setProperty("attachedEntityId", _oldAttachedEntityId);
|
config->setProperty("attachedEntityId", _oldAttachedEntityId);
|
||||||
config->setProperty("vFoV", _oldvFoV);
|
config->setProperty("vFoV", _oldvFoV);
|
||||||
|
|
Loading…
Reference in a new issue