Entropie git · main
Entropie festival game; first steps
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.gzentropie/assets/shaders/skybox.vert 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
}