gl01/shader.vert

17 lines
251 B
GLSL
Raw Normal View History

2022-01-20 21:58:50 +08:00
#version 330
uniform mat4 projection;
uniform mat4 view;
uniform mat4 model;
in vec3 vert;
in vec2 vertTexCoord;
out vec2 fragTexCoord;
void main() {
fragTexCoord = vertTexCoord;
gl_Position = projection * view * model * vec4(vert, 1);
}