1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-30 22:56:03 +00:00

Settled on half-intensity colour for now, appears likely not to be too incorrect(?)

This commit is contained in:
Thomas Harte 2016-06-13 18:20:21 -04:00
parent e10535181d
commit 2e946e785f

View File

@ -24,8 +24,8 @@ MOS6560::MOS6560() :
"uint yC = c & 15u;"
"float phaseOffset = 6.283185308 * float(yC) / 16.0;"
// "float chroma = 2.0*step(mod(phase + phaseOffset + 0.785398163397448, 6.283185308), 3.141592654) - 1.0;"
"float chroma = cos(phase + phaseOffset);"
"float chroma = step(mod(phase + phaseOffset + 0.785398163397448, 6.283185308), 3.141592654);"
// "float chroma = cos(phase + phaseOffset);"
"return mix(y, step(yC, 14) * chroma, amplitude);"
"}");