mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-28 07:29:45 +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;"
|
"uint yC = c & 15u;"
|
||||||
"float phaseOffset = 6.283185308 * float(yC) / 16.0;"
|
"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 = step(mod(phase + phaseOffset + 0.785398163397448, 6.283185308), 3.141592654);"
|
||||||
"float chroma = cos(phase + phaseOffset);"
|
// "float chroma = cos(phase + phaseOffset);"
|
||||||
"return mix(y, step(yC, 14) * chroma, amplitude);"
|
"return mix(y, step(yC, 14) * chroma, amplitude);"
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user