mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-11 04:28:58 +00:00
Reintroduced lateral as a parameter in CRT drawing, to simulate a rounded raster.
This commit is contained in:
parent
0b5417ab44
commit
b261e86c62
@ -44,7 +44,7 @@ void CRT::set_new_timing(unsigned int cycles_per_line, unsigned int height_of_di
|
|||||||
// generate timing values implied by the given arbuments
|
// generate timing values implied by the given arbuments
|
||||||
_sync_capacitor_charge_threshold = ((syncCapacityLineChargeThreshold * _cycles_per_line) * 50) >> 7;
|
_sync_capacitor_charge_threshold = ((syncCapacityLineChargeThreshold * _cycles_per_line) * 50) >> 7;
|
||||||
const unsigned int vertical_retrace_time = scanlinesVerticalRetraceTime * _cycles_per_line;
|
const unsigned int vertical_retrace_time = scanlinesVerticalRetraceTime * _cycles_per_line;
|
||||||
const float halfLineWidth = (float)_height_of_display * 2.0f;
|
const float halfLineWidth = (float)_height_of_display * 2.5f;
|
||||||
|
|
||||||
// creat the two flywheels
|
// creat the two flywheels
|
||||||
unsigned int horizontal_retrace_time = scanlinesVerticalRetraceTime * _cycles_per_line;
|
unsigned int horizontal_retrace_time = scanlinesVerticalRetraceTime * _cycles_per_line;
|
||||||
|
@ -311,7 +311,7 @@ char *CRT::get_fragment_shader()
|
|||||||
|
|
||||||
"void main(void)"
|
"void main(void)"
|
||||||
"{"
|
"{"
|
||||||
"fragColour = vec4(rgb_sample(srcCoordinatesVarying).rgb, 10.0 * exp(-age * 2.0));"
|
"fragColour = vec4(rgb_sample(srcCoordinatesVarying).rgb, 10.0 * exp(-age * 2.0) * sin(lateralVarying));"
|
||||||
"}"
|
"}"
|
||||||
, _rgb_shader);
|
, _rgb_shader);
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,6 @@ const int CRTInputBufferBuilderHeight = 1024;
|
|||||||
const int CRTIntermediateBufferWidth = 2048;
|
const int CRTIntermediateBufferWidth = 2048;
|
||||||
const int CRTIntermediateBufferHeight = 2048;
|
const int CRTIntermediateBufferHeight = 2048;
|
||||||
|
|
||||||
const int kCRTNumberOfFrames = 3;
|
const int kCRTNumberOfFrames = 4;
|
||||||
|
|
||||||
#endif /* CRTOpenGL_h */
|
#endif /* CRTOpenGL_h */
|
||||||
|
Loading…
Reference in New Issue
Block a user