From 9c33714591a2147f7e5879e77212ca9886d0c967 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 25 Sep 2026 21:47:58 -0300 Subject: 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. --- src/vector/shaders/path.vert | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/vector/shaders/path.vert (limited to 'src/vector/shaders/path.vert') 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); +} -- cgit v1.3