Space-Project/shaders/shader_skybox.vert

12 lines
233 B
GLSL
Raw Normal View History

2021-01-17 01:26:29 +01:00
#version 330 core
layout(location = 0) in vec3 vertexPosition;
out vec3 TexCoords;
uniform mat4 transformation;
void main()
{
TexCoords = vertexPosition;
2021-01-29 02:03:00 +01:00
gl_Position = (transformation * vec4(vertexPosition, 1.0)).xyww;
2021-01-17 01:26:29 +01:00
}