Files
Modularity/Resources/Shaders/skybox_vert.glsl
sonakrie ec1610443c
Some checks failed
Build C++ Project with Fedora Container and Create Release / build (push) Has been cancelled
Add everything.
2025-11-30 23:02:25 +01:00

15 lines
292 B
GLSL

#version 330 core
layout (location = 0) in vec3 aPos;
out vec3 fragPos;
uniform mat4 projection;
uniform mat4 view;
void main()
{
fragPos = aPos;
vec4 pos = projection * view * vec4(aPos, 1.0);
gl_Position = pos.xyww; // Trick to ensure skybox depth is always 1.0 (furthest)
}