mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-17 10:06:21 +00:00
Avoids scaling luminance prior to extracting chrominance.
This commit is contained in:
parent
5ceb711bd3
commit
a6683cb9b8
@ -437,8 +437,9 @@ std::unique_ptr<Shader> ScanTarget::conversion_shader(InputDataType input_data_t
|
||||
|
||||
// Take the average to calculate luminance, then subtract that from all four samples to
|
||||
// give chrominance.
|
||||
"float luminance = dot(samples, vec4(0.25 / (1.0 - compositeAmplitude)));"
|
||||
"float luminance = dot(samples, vec4(0.25));"
|
||||
"samples -= vec4(luminance);"
|
||||
"luminance /= (1.0 - compositeAmplitude);"
|
||||
|
||||
// Split and average chrominance.
|
||||
"vec2 channels = vec2("
|
||||
|
Loading…
Reference in New Issue
Block a user