Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / library / map / src / main / rust / shaders / pick.vert

pick.vert12 lines · 514 BRaw
1#version 450
2// Id-buffer pick vertex: the shared unit quad, placed exactly like the puck/marker sprites
3// through `screen_quad_to_clip` (billboarded, upright and screen-constant under tilt), so a
4// marker's pick box lands where its icon is drawn. Position only — the pick pass writes an id,
5// not a picture, so there is no UV.
6layout(location = 0) in vec2 inLocal;
7layout(push_constant) uniform Push {
8 mat4 tileToClip;
9} push;
10void main() {
11 gl_Position = push.tileToClip * vec4(inLocal, 0.0, 1.0);
12}