2017-09-05 17:20:42 +10:00
|
|
|
#version 450
|
|
|
|
#extension GL_ARB_separate_shader_objects : enable
|
|
|
|
|
2017-09-07 12:52:03 +10:00
|
|
|
layout(location = 0) in vec2 inPosition;
|
|
|
|
layout(location = 1) in vec3 inColor;
|
2017-09-05 17:20:42 +10:00
|
|
|
|
|
|
|
layout(location = 0) out vec3 fragColor;
|
|
|
|
|
2017-09-07 12:52:03 +10:00
|
|
|
out gl_PerVertex {
|
|
|
|
vec4 gl_Position;
|
|
|
|
};
|
2017-09-05 17:20:42 +10:00
|
|
|
|
|
|
|
void main() {
|
2017-09-07 12:52:03 +10:00
|
|
|
gl_Position = vec4(inPosition, 0.0, 1.0);
|
|
|
|
fragColor = inColor;
|
2017-09-05 17:20:42 +10:00
|
|
|
}
|