1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Implemented a virtual skew control, hard coded to what is conveniently exactly the right number.

This commit is contained in:
Thomas Harte 2015-07-27 16:44:47 -04:00
parent 31e9a53a44
commit b9cf6fd4dc

View File

@ -131,8 +131,8 @@ const char *vertexShader =
"\n" "\n"
"void main (void)\n" "void main (void)\n"
"{\n" "{\n"
"srcCoordinatesVarying = vec2(srcCoordinates.x / 512.0, srcCoordinates.y / 512.0);\n" "srcCoordinatesVarying = vec2(srcCoordinates.x / 512.0, (srcCoordinates.y + 0.5) / 512.0);\n"
"gl_Position = vec4(position.x * 2.0 - 1.0, 1.0 - position.y * 2.0, 0.0, 1.0);\n" "gl_Position = vec4(position.x * 2.0 - 1.0, 1.0 - position.y * 2.0 + position.x / 131.0, 0.0, 1.0);\n"
"}\n"; "}\n";
// TODO: this should be factored out and be per project // TODO: this should be factored out and be per project