Files
vimix/rsc/shaders/simple.vs
brunoherbelin 551acf25b9 New Shader Image Processing
Cleanup shaders and add image processing shader for source
2020-04-25 23:58:49 +02:00

19 lines
314 B
GLSL

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