diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-11-01 23:01:22 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-11-23 14:27:39 +0100 |
| commit | ab76cf8b5e27eee916107e3f6ddf209407ce169d (patch) | |
| tree | bb0c835c348790ee637d0cb71b04e5ee439a1795 /Source/Core | |
| parent | 081212b765754ae80b7a0774ec340c81a47c9199 (diff) | |
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.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/PostProcessing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
