summaryrefslogtreecommitdiff
path: root/src/vector/shaders/path.vert
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-25 21:47:58 -0300
committerGabriel Schneider <[email protected]>2026-09-25 21:48:16 -0300
commit9c33714591a2147f7e5879e77212ca9886d0c967 (patch)
treed250be9d9bc365d7894d49455c0f6376966b58be /src/vector/shaders/path.vert
downloadsketchbook-9c33714591a2147f7e5879e77212ca9886d0c967.tar.gz
sketchbook-9c33714591a2147f7e5879e77212ca9886d0c967.zip
Put the game first: lib/sketchbook, sketches/vecanim
The root is the game. The platform library moves to lib/sketchbook (with serve_web.py, which serves any sketch's web build, as a tool of it), and vecanim to sketches/vecanim, still its own package on the same library.
Diffstat (limited to 'src/vector/shaders/path.vert')
-rw-r--r--src/vector/shaders/path.vert9
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);
+}