From ab76cf8b5e27eee916107e3f6ddf209407ce169d Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Sat, 1 Nov 2014 23:01:22 +0100 Subject: [PATCH] PostProcessing: Apply color correction to the anaglyph shader. The eyes were accidentally swapped, the left filter only allows red to pass so the left eye texture should be used in the red channel. --- Source/Core/VideoBackends/OGL/PostProcessing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/OGL/PostProcessing.cpp b/Source/Core/VideoBackends/OGL/PostProcessing.cpp index 905531226c..84088459ed 100644 --- a/Source/Core/VideoBackends/OGL/PostProcessing.cpp +++ b/Source/Core/VideoBackends/OGL/PostProcessing.cpp @@ -171,7 +171,7 @@ void OpenGLPostProcessing::ApplyShader() std::string default_shader = "void main() { SetOutput(Sample()); }\n"; if (g_ActiveConfig.iStereoMode == STEREO_ANAGLYPH) - code = "void main() { SetOutput(float4(SampleLayer(1).r, SampleLayer(0).gba)); }\n"; + code = "void main() { SetOutput(float4(pow(0.7 * SampleLayer(0).g + 0.3 * SampleLayer(0).b, 1.5), SampleLayer(1).gba)); }\n"; else if (g_ActiveConfig.sPostProcessingShader != "") code = m_config.LoadShader();