/usr/share/libavogadro/shaders/clip.vert is in avogadro-data 1.2.0-3.
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 | // Taken from Molekel trunk 3 December 2008
varying vec4 pos;
varying vec3 normal;
varying vec4 color;
uniform float factor;
void main()
{
pos = gl_Vertex;
pos.xyz /= gl_Vertex.w;
pos.xyz *= factor;
normal = normalize( gl_NormalMatrix * gl_Normal );
color = gl_Color;
gl_Position = ftransform();
}
|