pxmlw6n2f/Gazebo_Distributed_TCP/media/materials/programs/grid_vp.glsl

10 lines
172 B
GLSL

varying vec3 worldPos;
varying float depth;
void main()
{
worldPos = gl_Vertex.xyz;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
depth = gl_Position.z;
}