/usr/share/gazebo-9/media/materials/programs/perpixel_vp.glsl is in gazebo9-common 9.0.0+dfsg5-3ubuntu1.
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 | uniform mat4 world_view_mat;
uniform mat4 world_view_proj_mat;
varying vec3 vertex_world_view_pos;
varying vec3 vertex_world_norm;
void main()
{
gl_Position = world_view_proj_mat * gl_Vertex;
// Vertex in world space
vertex_world_view_pos = (world_view_mat * gl_Vertex).xyz;
// Vertex normal in world space
vertex_world_norm = normalize( gl_NormalMatrix * gl_Normal );
}
|