add settings for cubemap size

0.6.3
Miloslav Číž 7 years ago
parent 43c49e2f31
commit 5a07d135ae

@ -766,8 +766,8 @@ namespace MWRender
int screenshotHeight = Settings::Manager::tryGetInt("s360 height","Video",mViewer->getCamera()->getViewport()->height());
SphericalScreenshot::SphericalScreenshotMapping mapping = static_cast<SphericalScreenshot::SphericalScreenshotMapping>(
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);
osg::Vec3 directions[6] = {

Loading…
Cancel
Save