From c0454ff101f04f84dc57b3baf46de4ba15088a90 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 22 Nov 2018 18:18:16 -0500 Subject: [PATCH] Corrects chrominance scale. --- Outputs/OpenGL/ScanTargetGLSLFragments.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/OpenGL/ScanTargetGLSLFragments.cpp b/Outputs/OpenGL/ScanTargetGLSLFragments.cpp index 3dc89173e..cedf3b24e 100644 --- a/Outputs/OpenGL/ScanTargetGLSLFragments.cpp +++ b/Outputs/OpenGL/ScanTargetGLSLFragments.cpp @@ -234,7 +234,7 @@ std::unique_ptr ScanTarget::input_shader(InputDataType input_data_type, // If the output type isn't SVideo, add an SVideo to composite step. if(computed_display_type != DisplayType::SVideo) { - fragment_shader += "fragColour = vec4(vec3(mix(fragColour.r,fragColour.g, compositeAmplitudeOut)), 1.0);"; + fragment_shader += "fragColour = vec4(vec3(mix(fragColour.r, 2.0*(fragColour.g - 0.5), compositeAmplitudeOut)), 1.0);"; } }