Nimbin[12]?Games / Entropie / entropie/assets/shaders/skybox.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/skybox.vert 298 B · 12 lines raw
layout (location = 0) in vec3 aPos;

uniform mat4 view;       // camera view without translation
uniform mat4 projection;

out vec3 Direction;

void main() {
    Direction   = aPos;
    vec4 pos    = projection * view * vec4(aPos, 1.0);
    gl_Position = pos.xyww;  // keeps the sky at depth 1.0
}