05/shaders/shader.vert

17 lines
287 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;
2022-11-14 16:53:40 +00:00
layout(location = 2) in vec3 normals;
2022-11-14 16:53:14 +00:00
uniform mat4 vp;
uniform mat4 model;
out vec2 texCoord;
void main()
{
gl_Position = vp * model * vec4(pos, 1.0);
texCoord = inTexCoord;
}