mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-17 10:06:21 +00:00
Marginally increases scan size.
This commit is contained in:
parent
97c5ee6c0a
commit
26219213d7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user