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-28 12:39:12 +01:00
|
|
|
in vec4 inCoord;
|
|
|
|
in vec3 inNormal;
|
|
|
|
in vec2 inUV;
|
|
|
|
in vec4 inColor;
|
2018-02-16 21:22:34 +01:00
|
|
|
|
|
|
|
uniform mat4 uModelViewProj;
|
2018-02-13 12:05:07 +01:00
|
|
|
|
2018-02-28 12:39:12 +01:00
|
|
|
out vec4 fragmentColor;
|
2018-02-27 23:15:07 +01:00
|
|
|
|
2018-02-13 12:05:07 +01:00
|
|
|
void main() {
|
2018-02-28 12:39:12 +01:00
|
|
|
gl_Position = uModelViewProj * inCoord;
|
2018-02-27 23:15:07 +01:00
|
|
|
fragmentColor = inColor;
|
2018-02-13 12:05:07 +01:00
|
|
|
}
|