1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Corrects chrominance scale.

This commit is contained in:
Thomas Harte 2018-11-22 18:18:16 -05:00
parent a697a2e4f6
commit c0454ff101

View File

@ -234,7 +234,7 @@ std::unique_ptr<Shader> 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);";
}
}