/usr/share/gazebo-9/media/materials/programs/depth_map.vert 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 | uniform vec4 texelOffsets;
varying float depth;
void main()
{
gl_Position = ftransform();
gl_Position.xy += texelOffsets.zw * gl_Position.w;
//depth = -(gl_ModelViewMatrix * gl_Vertex).z; // ???
depth = gl_Position.w; // copied from old gazebo
}
|