/usr/share/glmark2/shaders/ideas-text.vert is in glmark2-data 2014.03+git20150611.fa71af2d-0ubuntu4.
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 | uniform mat4 projection;
uniform mat4 modelview;
uniform float currentTime;
attribute vec2 vertex;
varying vec4 color;
void main()
{
vec4 curVertex = vec4(vertex.x, vertex.y, 0.0, 1.0);
gl_Position = projection * modelview * curVertex;
float referenceTime = 15.0;
float c = 0.0;
if (currentTime > referenceTime * 1.0 - 5.0)
{
c = (currentTime - (referenceTime * 1.0 - 5.0)) / 2.0;
}
color = vec4(c, c, c, 1.0);
}
|