/usr/share/openmsx/shaders/hq.vert is in openmsx-data 0.10.0-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | uniform vec2 texSize;
varying vec2 mid;
varying vec2 leftTop;
varying vec2 edgePos;
varying vec2 weightPos;
varying vec2 texStep2; // could be uniform
varying vec2 videoCoord;
void main()
{
gl_Position = ftransform();
vec2 texStep = 1.0 / texSize;
mid = gl_MultiTexCoord0.st;
leftTop = gl_MultiTexCoord0.st - texStep;
edgePos.x = gl_MultiTexCoord0.s;
edgePos.y = gl_MultiTexCoord0.t * 2.0;
vec2 texSizeB = vec2(texSize.x, texSize.y * 0.5);
weightPos = edgePos * texSizeB;
texStep2 = 2.0 * texStep;
#if SUPERIMPOSE
videoCoord = gl_MultiTexCoord1.st;
#endif
}
|