/usr/share/libavogadro/shaders/per-pixel-lighting.vert is in avogadro-data 1.2.0-1+deb9u1.
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 | varying vec3 Normal;
varying vec3 Light;
varying vec3 HalfVector;
void main(void)
{
Normal = normalize(gl_NormalMatrix * gl_Normal);
Light = normalize(gl_LightSource[0].position.xyz);
HalfVector = normalize(gl_LightSource[0].halfVector.xyz);
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
|