mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +00:00
Settled on half-intensity colour for now, appears likely not to be too incorrect(?)
This commit is contained in:
parent
e10535181d
commit
2e946e785f
@ -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);"
|
||||
"}");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user