2018-02-13 12:05:07 +01:00
|
|
|
#version 150 core
|
2018-02-27 23:15:07 +01:00
|
|
|
#extension GL_ARB_explicit_attrib_location : require
|
2018-02-13 12:05:07 +01:00
|
|
|
|
2018-02-27 23:31:13 +01:00
|
|
|
in vec3 inCoord;
|
|
|
|
in vec3 inColor;
|
2018-02-16 21:22:34 +01:00
|
|
|
|
|
|
|
uniform mat4 uModelViewProj;
|
2018-02-13 12:05:07 +01:00
|
|
|
|
2018-02-27 23:15:07 +01:00
|
|
|
out vec3 fragmentColor;
|
|
|
|
|
2018-02-13 12:05:07 +01:00
|
|
|
void main() {
|
2018-02-27 23:15:07 +01:00
|
|
|
gl_Position = uModelViewProj * vec4(inCoord, 1);
|
|
|
|
fragmentColor = inColor;
|
2018-02-13 12:05:07 +01:00
|
|
|
}
|