recrownedgtk/RecrownedGTK/Graphics/Render/Shaders/default.vert

16 lines
252 B
GLSL
Raw Normal View History

2020-02-17 02:44:21 +00:00
#version 330 core
in vec3 aPosition;
in vec2 aTexCoord;
in vec4 aColor;
uniform mat4 transform;
out vec2 texCoord;
out vec4 color;
2020-02-17 02:44:21 +00:00
void main()
{
texCoord = aTexCoord;
color = aColor;
gl_Position = vec4(aPosition, 1.0f) * transform;
2020-02-17 02:44:21 +00:00
}