2017-06-21 07:39:08 +00:00
|
|
|
#version 450
|
2017-05-23 01:41:19 +00:00
|
|
|
|
|
|
|
uniform Transform
|
|
|
|
{
|
|
|
|
mat4 transform;
|
|
|
|
} block;
|
|
|
|
|
2017-06-21 07:39:08 +00:00
|
|
|
layout(location = 0) in vec3 position;
|
|
|
|
layout(location = 1) in vec4 color;
|
2017-05-23 01:41:19 +00:00
|
|
|
|
2017-06-21 07:55:46 +00:00
|
|
|
layout(location = 2) out VertexOut
|
2017-05-23 01:41:19 +00:00
|
|
|
{
|
|
|
|
vec4 color;
|
2017-06-21 07:55:46 +00:00
|
|
|
vec4 color2;
|
2017-05-23 01:41:19 +00:00
|
|
|
} outputs;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2017-06-21 07:55:46 +00:00
|
|
|
gl_Position = block.transform * vec4(position, 1.0);
|
2017-05-23 01:41:19 +00:00
|
|
|
outputs.color = color;
|
2017-06-21 07:55:46 +00:00
|
|
|
outputs.color2 = color + vec4(1.0);
|
2017-05-23 01:41:19 +00:00
|
|
|
}
|