This file is indexed.

/usr/share/libavogadro/shaders/clip.frag 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
16
17
18
19
20
21
22
23
24
25
// Taken from Molekel trunk 3 December 2008
uniform float xmin;
uniform float xmax;
uniform float ymin;
uniform float ymax;
uniform float zmin;
uniform float zmax;

varying vec4 color;
varying vec3 normal;
varying vec4 pos;


vec3 lightDir = vec3( 0., 0., 1. );

void main()
{
  if( pos.x < xmin || pos.x > xmax ||
          pos.y < ymin || pos.y > ymax ||
          pos.z < zmin || pos.z > zmax ) discard;

  const float kd = abs( dot( normalize( lightDir ), normal ) );
  gl_FragColor = vec4( color.rgb * kd, color.a );

}