Dengine/data/shaders/sprite.vert.glsl

12 lines
220 B
Plaintext
Raw Normal View History

#version 330 core
layout(location = 0) in vec4 data; // (vec2)pos, (vec2)texCoord
2016-06-09 05:49:03 +00:00
uniform mat4 projection;
out vec2 texCoord;
2016-06-09 05:49:03 +00:00
void main()
{
gl_Position = projection * vec4(data.xy, 0.0f, 1.0f);
texCoord = data.zw;
}