summaryrefslogtreecommitdiff
path: root/src/vector/shaders/path.vert
blob: dbca9f80d30f68943bd8b485e448a6e0b5215b06 (plain) (blame)
1
2
3
4
5
6
7
8
9
#version 450
#extension GL_GOOGLE_include_directive : require
// Device pixels (y down) to normalized device coordinates (y up).
#include "Vertex.glsl"
#include "Viewport.glsl"

void main() {
    gl_Position = vec4(position.x / viewport.size.x * 2.0 - 1.0, 1.0 - position.y / viewport.size.y * 2.0, 0.0, 1.0);
}