1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00

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());
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] = {