diff options
Diffstat (limited to 'src/vector/shaders/path.vert')
| -rw-r--r-- | src/vector/shaders/path.vert | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vector/shaders/path.vert b/src/vector/shaders/path.vert new file mode 100644 index 0000000..dbca9f8 --- /dev/null +++ b/src/vector/shaders/path.vert @@ -0,0 +1,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); +} |
