c-project/resources/skybox.vert

18 lines
202 B
GLSL
Raw Normal View History

2024-05-15 11:25:35 +02:00
#version 330 core
layout(location = 0) in vec3 pos;
out vec3 v_pos;
uniform mat4 u_viewProjection;
void main()
{
v_pos = pos;
vec4 p = u_viewProjection * vec4(pos, 1);
gl_Position = p.xyww;
}