Nimbin[12]?Games / Entropie / entropie/assets/shaders/ink.vert

Entropie git · main

Entropie festival game; first steps

sdl c game entropie cmake · first commit 2026-10-10 · last commit 2026-11-02 (19 hours ago) · synced 10 hours ago

C 88.5% Markdown 9.1% GLSL 2.3%
git clone https://git.christianimmanuel.de/games/Entropie.gitwget https://git.christianimmanuel.de/games/Entropie/archive/Entropie.tar.gz
entropie/assets/shaders/ink.vert 214 B · 8 lines raw
// Fullscreen triangle, no vertex buffer needed.
out vec2 UV;

void main() {
    vec2 p = vec2(float((gl_VertexID << 1) & 2), float(gl_VertexID & 2));
    UV = p;
    gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0);
}