summaryrefslogtreecommitdiff
path: root/src/assets/shaders/plane/vert.glsl
blob: c8932a5e464d3f18ee554029511bede325c6f6d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
out float vertex_depth;

void main()
{
    vertex_texcoord = texcoord;
    vec3 pos = (position * vec4(vertex, 1.0)).xyz;
    vertex_fragpos = pos;
    vec4 vpos = view * vec4(pos, 1.0);
    vertex_depth = vpos.z;
    gl_Position = projection * vpos;
}