/usr/share/openmsx/shaders/sai.vert is in openmsx-data 0.12.0-1build1.
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 29 30 31 32 | uniform mat4 u_mvpMatrix;
uniform vec3 texSize;
attribute vec4 a_position;
attribute vec3 a_texCoord;
varying vec4 posABCD;
varying vec4 posEL;
varying vec4 posGJ;
varying vec3 scaled;
varying vec2 videoCoord;
void main()
{
gl_Position = u_mvpMatrix * a_position;
vec2 texStep = 1.0 / texSize.xy;
posABCD.xy = a_texCoord.xy;
posABCD.zw = a_texCoord.xy + texStep * vec2( 1.0, 1.0);
posEL.xy = a_texCoord.xy + texStep * vec2( 0.0, -1.0);
posEL.zw = a_texCoord.xy + texStep * vec2( 1.0, 2.0);
posGJ.xy = a_texCoord.xy + texStep * vec2(-1.0, 0.0);
posGJ.zw = a_texCoord.xy + texStep * vec2( 2.0, 1.0);
scaled.x = a_texCoord.x * texSize.x;
scaled.y = (1.0 - a_texCoord.x) * texSize.x;
scaled.z = a_texCoord.y * texSize.y;
#if SUPERIMPOSE
videoCoord = a_texCoord.xz;
#endif
}
|