add settings for cubemap size

This commit is contained in:
Miloslav Číž 2017-11-10 10:34:46 +01:00
parent 43c49e2f31
commit 5a07d135ae

View file

@ -766,8 +766,8 @@ namespace MWRender
int screenshotHeight = Settings::Manager::tryGetInt("s360 height","Video",mViewer->getCamera()->getViewport()->height()); int screenshotHeight = Settings::Manager::tryGetInt("s360 height","Video",mViewer->getCamera()->getViewport()->height());
SphericalScreenshot::SphericalScreenshotMapping mapping = static_cast<SphericalScreenshot::SphericalScreenshotMapping>( SphericalScreenshot::SphericalScreenshotMapping mapping = static_cast<SphericalScreenshot::SphericalScreenshotMapping>(
Settings::Manager::tryGetInt("s360 mapping","Video",SphericalScreenshot::MAPPING_SPHERICAL)); Settings::Manager::tryGetInt("s360 mapping","Video",SphericalScreenshot::MAPPING_SPHERICAL));
int cubeWidth = Settings::Manager::tryGetInt("s360 cubemap size","Video",screenshotWidth / 2);
int cubeWidth = screenshotWidth / 2;
SphericalScreenshot s(cubeWidth); SphericalScreenshot s(cubeWidth);
osg::Vec3 directions[6] = { osg::Vec3 directions[6] = {