/usr/share/pymol/data/shaders/volume.vs is in pymol-data 1.8.4.0+dfsg-1.
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 | varying float fog;
uniform float g_Fog_end;
uniform float g_Fog_scale;
varying vec2 bgTextureLookup;
void main()
{
vec4 vertex = gl_ModelViewMatrix * gl_Vertex;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_ClipVertex = vertex;
gl_Position = ftransform();
gl_FogFragCoord = -vertex.z;
fog = (g_Fog_end - gl_FogFragCoord) * g_Fog_scale;
bgTextureLookup = (gl_Position.xy/gl_Position.w) / 2.0 + 0.5;
}
|