We got a skybox

This commit is contained in:
2026-01-21 06:05:35 +01:00
parent b9878f2a06
commit a5b26f3bdd
27 changed files with 843 additions and 42 deletions

View File

@@ -0,0 +1,10 @@
#version 460
layout (location = 0) out vec2 outUV;
void main()
{
outUV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
// gl_Position = vec4(outUV * 2.0f + -1.0f, 0.0f, 1.0f);
gl_Position = vec4(outUV * 2.0 - 1.0, 1.0, 1.0);
}