2017-06-21 07:39:08 +00:00
|
|
|
#version 450
|
2017-05-05 20:13:55 +00:00
|
|
|
uniform params {
|
|
|
|
mat4 mvp;
|
|
|
|
float psize;
|
|
|
|
};
|
|
|
|
|
2017-06-21 07:39:08 +00:00
|
|
|
layout(location = 0) in vec4 position;
|
|
|
|
layout(location = 1) in vec4 color0;
|
|
|
|
layout(location = 0) out vec4 color;
|
2017-05-05 20:13:55 +00:00
|
|
|
|
|
|
|
void main() {
|
|
|
|
gl_Position = mvp * position;
|
|
|
|
gl_PointSize = psize;
|
|
|
|
color = color0;
|
|
|
|
}
|