1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-29 16:55:59 +00:00

Marginally increases scan size.

This commit is contained in:
Thomas Harte 2018-11-18 23:03:56 -05:00
parent 97c5ee6c0a
commit 26219213d7

View File

@ -174,8 +174,12 @@ void ScanTarget::set_modals(Modals modals) {
}
void Outputs::Display::OpenGL::ScanTarget::set_uniforms(ShaderType type, Shader &target) {
// Slightly over-amping rowHeight here is a cheap way to make sure that lines
// converge even allowing for the fact that they may not be spaced by exactly
// the expected distance. Cf. the stencil-powered logic for making sure all
// pixels are painted only exactly once per field.
target.set_uniform("rowHeight", GLfloat(1.05f / modals_.expected_vertical_lines));
target.set_uniform("scale", GLfloat(modals_.output_scale.x), GLfloat(modals_.output_scale.y));
target.set_uniform("rowHeight", GLfloat(1.0f / modals_.expected_vertical_lines));
target.set_uniform("processingWidth", GLfloat(processing_width_) / 2048.0f);
}