/usr/share/libavogadro/shaders/phong.vert is in avogadro-data 1.1.1-0ubuntu7.
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 26 27 28 29 30 31 32 33 34 | // wwlk
//
// Trivial Vertex shader to setup per fragment lighting
//
vec4 ULLight = vec4 ( 0.435028 , 0.602347 , 0.669274 , 0.0 );
vec4 LRLight = vec4 ( 0.894427 , 0.0 , 0.447214 , 0.0 );
vec4 RimLight = vec4( 0.94868, 0.0, 0.316228, 1.0 );
vec4 DifColor = vec4( 0.35, 0.35, 0.5, 1.0 );
vec4 SpecColor = vec4( 0.4, 0.4, 0.2, 1.0 );
vec4 ULColor = vec4( 0.5, 0.3875, 0.75, 1.0 );
vec4 LRColor = vec4( 0.75, 0.5, 0.5, 1.0 );
void main(void)
{
vec3 eyeNormal;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
eyeNormal = gl_NormalMatrix * gl_Normal;
gl_TexCoord[0] = vec4( eyeNormal, 0.0 );
gl_TexCoord[1] = ULLight;
gl_TexCoord[2] = LRLight;
gl_TexCoord[3] = RimLight;
gl_TexCoord[4] = DifColor;
gl_TexCoord[5] = SpecColor;
gl_TexCoord[6] = ULColor;
gl_TexCoord[7] = LRColor;
}
|