asteroidgen/assets/shader/skybox.vertex.glsl

15 lines
196 B
GLSL

#version 330
in vec3 vPosition;
uniform mat4 MVP;
out vec3 TexCoord0;
void main()
{
vec4 WVP_Pos = MVP * vec4(vPosition, 1.0);
gl_Position = WVP_Pos.xyww;
TexCoord0 = vPosition;
}