mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-04 01:57:54 +00:00
Corrected TIA no longer to assume phase is an automatic quarter askew.
This commit is contained in:
parent
a5075d9eb5
commit
2ee8a7056e
@ -137,7 +137,7 @@ void TIA::set_output_mode(Atari2600::TIA::OutputMode output_mode) {
|
|||||||
"uint y = c & 14u;"
|
"uint y = c & 14u;"
|
||||||
"uint iPhase = (c >> 4);"
|
"uint iPhase = (c >> 4);"
|
||||||
|
|
||||||
"float phaseOffset = 6.283185308 * (float(iPhase) + 3.0) / 13.0 + 5.074880441076923;"
|
"float phaseOffset = 6.283185308 * float(iPhase) / 13.0 + 5.074880441076923;"
|
||||||
"return mix(float(y) / 14.0, step(1, iPhase) * cos(phase + phaseOffset), amplitude);"
|
"return mix(float(y) / 14.0, step(1, iPhase) * cos(phase + phaseOffset), amplitude);"
|
||||||
"}");
|
"}");
|
||||||
display_type = Outputs::CRT::DisplayType::NTSC60;
|
display_type = Outputs::CRT::DisplayType::NTSC60;
|
||||||
|
Loading…
Reference in New Issue
Block a user