1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Attempted a switch to the real PAL visible area and to something a bit like a real phosphor decay.

This commit is contained in:
Thomas Harte 2016-02-14 21:57:23 -05:00
parent 7580d192d5
commit a01f90ff3e
3 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ Machine::Machine() :
"float texValue = texture(texID, coordinate).r;"
"return vec3(step(4.0/256.0, mod(texValue, 8.0/256.0)), step(2.0/256.0, mod(texValue, 4.0/256.0)), step(1.0/256.0, mod(texValue, 2.0/256.0)));"
"}");
// _crt->set_visible_area(Outputs::Rect(0.2f, 0.05f, 0.82f, 0.82f));
_crt->set_visible_area(Outputs::Rect(0.1875f, 0.0f, 0.8125f, 0.98f));
memset(_keyStates, 0, sizeof(_keyStates));
memset(_palette, 0xf, sizeof(_palette));

View File

@ -162,7 +162,7 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
NSOpenGLPFADoubleBuffer,
NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core,
NSOpenGLPFASampleBuffers, 1,
NSOpenGLPFASamples, 2,
NSOpenGLPFASamples, 16,
0
};

View File

@ -311,7 +311,7 @@ char *CRT::get_fragment_shader()
"void main(void)"
"{"
"fragColour = vec4(rgb_sample(srcCoordinatesVarying).rgb, 2.0 - age);"
"fragColour = vec4(rgb_sample(srcCoordinatesVarying).rgb, 10.0 * exp(-age * 2.0));"
"}"
, _rgb_shader);
}