LearnOpenGL/Shaders/skybox2.vs
2023-06-02 20:07:32 +02:00

13 lines
215 B
GLSL

#version 460 core
layout (location = 0) in vec3 aPos;
out vec3 localPos;
uniform mat4 projection;
uniform mat4 view;
void main()
{
localPos = aPos;
gl_Position = projection * view * vec4(localPos ,1.0);
}