/usr/share/meshlab/shaders/phong.vert is in meshlab 1.3.2+dfsg1-4.
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 | //
// Bui Tuong Phong shading model (per-pixel)
//
// by
// Massimiliano Corsini
// Visual Computing Lab (2006)
//
varying vec3 normal;
varying vec3 vpos;
void main()
{
// vertex normal
normal = normalize(gl_NormalMatrix * gl_Normal);
// vertex position
vpos = vec3(gl_ModelViewMatrix * gl_Vertex);
// vertex position
gl_Position = ftransform();
}
|