1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Attempts to ensure proper colour output during alternating PAL lines.

This commit is contained in:
Thomas Harte 2019-02-17 21:50:15 -05:00
parent 7bd721f334
commit 6d76b7cd94

View File

@ -194,7 +194,7 @@ std::string ScanTarget::sampling_function() const {
case InputDataType::PhaseLinkedLuminance8:
fragment_shader +=
"uint iPhase = uint((angle * 2.0 / 3.141592654) ) & 3u;";
"uint iPhase = uint(step(sign(angle), 0.0) * 3) ^ uint(abs(angle * 2.0 / 3.141592654) ) & 3u;";
fragment_shader +=
is_svideo ?