05/shaders/shader.vert

16 lines
248 B
GLSL
Raw Normal View History

2022-11-14 16:53:14 +00:00
#version 330 core
layout(location = 0) in vec3 pos;
layout(location = 1) in vec2 inTexCoord;
uniform mat4 vp;
uniform mat4 model;
out vec2 texCoord;
void main()
{
gl_Position = vp * model * vec4(pos, 1.0);
texCoord = inTexCoord;
}