yupplemayham/Resources/shaders/GL_player.vert
2025-01-28 16:07:58 -05:00

19 lines
No EOL
317 B
GLSL

#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec2 aTexPos;
out vec3 pos;
out vec2 texPos;
uniform mat4 MVP;
uniform mat4 model;
uniform mat4 projection;
uniform mat4 view;
void main()
{
pos = aPos;
texPos = aTexPos;
gl_Position = projection * view * model * vec4(aPos, 1.0);
}