/usr/share/glmark2/shaders/shadow.vert is in glmark2-data 2014.03+git20150611.fa71af2d-0ubuntu2.
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 | attribute vec2 position;
uniform mat4 LightMatrix;
uniform mat4 ModelViewProjectionMatrix;
varying vec4 ShadowCoord;
varying vec4 Color;
void main()
{
Color = MaterialDiffuse;
vec4 pos4 = vec4(position, 0.0, 1.0);
ShadowCoord = LightMatrix * pos4;
gl_Position = ModelViewProjectionMatrix * pos4;
}
|