From 9f936b8b99da7670bf5d0d02a12745004f2bc186 Mon Sep 17 00:00:00 2001 From: yvt Date: Sat, 16 Nov 2013 23:34:39 +0900 Subject: [PATCH] =?UTF-8?q?Lens=20flare=20support=20for=20dynamic=20lights?= =?UTF-8?q?=20is=20now=20mapped=20to=20the=20=E2=80=9CPost=20Filter?= =?UTF-8?q?=E2=80=9D=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Gui/MainWindowHandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/Gui/MainWindowHandler.cpp b/Sources/Gui/MainWindowHandler.cpp index 591e1b84..f81683e6 100644 --- a/Sources/Gui/MainWindowHandler.cpp +++ b/Sources/Gui/MainWindowHandler.cpp @@ -63,6 +63,7 @@ SPADES_SETTING(r_videoHeight, "640"); SPADES_SETTING(r_fullscreen, "0"); SPADES_SETTING(r_fogShadow, "0"); SPADES_SETTING(r_lensFlare, "1"); +SPADES_SETTING(r_lensFlareDynamic, ""); SPADES_SETTING(r_blitFramebuffer, "1"); SPADES_SETTING(r_srgb, ""); SPADES_SETTING(r_shadowMapSize, ""); @@ -253,11 +254,11 @@ void MainWindow::LoadPrefs() { postFilterSelect->value(2); } - if(r_cameraBlur && r_bloom && r_lens && r_lensFlare && + if(r_cameraBlur && r_bloom && r_lens && r_lensFlare && r_lensFlareDynamic && r_colorCorrection && r_depthOfField && postFilterHighCapable) { postFilterSelect->value(2); - }else if(r_cameraBlur && (!r_bloom) && r_lens && r_lensFlare && + }else if(r_cameraBlur && (!r_bloom) && r_lens && r_lensFlare && (!r_lensFlareDynamic) && r_colorCorrection && (!r_depthOfField)) { postFilterSelect->value(1); }else{ @@ -736,6 +737,7 @@ void MainWindow::SavePrefs() { r_bloom = 0; r_lens = 0; r_lensFlare = 0; + r_lensFlareDynamic = 0; r_cameraBlur = 0; r_colorCorrection = 0; r_depthOfField = 0; @@ -744,6 +746,7 @@ void MainWindow::SavePrefs() { r_bloom = 0; r_lens = 1; r_lensFlare = 1; + r_lensFlareDynamic = 0; r_cameraBlur = 1; r_colorCorrection = 1; r_depthOfField = 0; @@ -753,6 +756,7 @@ void MainWindow::SavePrefs() { r_bloom = 1; r_lens = 1; r_lensFlare = 1; + r_lensFlareDynamic = 1; r_cameraBlur = 1; r_colorCorrection = 1; r_depthOfField = 1;