Files
vimix/rsc/shaders/image.vs
brunoherbelin d248df0567 Separate shader for image processing and simple texture display.
ImageShader added a second texture for mask blending. Cleanup of User
Interface windows.
2020-04-27 13:44:20 +02:00

23 lines
395 B
GLSL

#version 330 core
layout (location = 0) in vec3 position;
layout (location = 1) in vec4 color;
layout (location = 2) in vec2 texCoord;
out vec4 vertexColor;
out vec2 vertexUV;
uniform mat4 modelview;
uniform mat4 projection;
void main()
{
vec4 pos = modelview * vec4(position, 1.0);
// output
gl_Position = projection * pos;
vertexColor = color;
vertexUV = texCoord;
}