/usr/share/glmark2/shaders/loop.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 19 20 21 22 23 24 | attribute vec3 position;
uniform mat4 ModelViewProjectionMatrix;
uniform int VertexLoops;
// Removing this varying causes an inexplicable performance regression
// with r600g... Keeping it for now.
varying vec4 dummy;
void main(void)
{
dummy = vec4(1.0);
float d = fract(position.x);
$MAIN$
vec4 pos = vec4(position.x,
position.y + 0.1 * d * fract(position.x),
position.z, 1.0);
// Transform the position to clip coordinates
gl_Position = ModelViewProjectionMatrix * pos;
}
|