2017-12-22 18:35:11 +00:00
|
|
|
attribute vec3 vPosition;
|
|
|
|
attribute vec2 vTexCoord;
|
2017-12-23 23:55:01 +00:00
|
|
|
attribute vec4 vColor;
|
2017-12-22 18:35:11 +00:00
|
|
|
|
2017-12-23 23:55:01 +00:00
|
|
|
out vec2 texCoord;
|
|
|
|
flat out vec4 color;
|
2017-12-22 18:35:11 +00:00
|
|
|
|
|
|
|
uniform mat4 ProjectionMatrix;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
|
|
|
texCoord = vTexCoord;
|
2017-12-23 23:55:01 +00:00
|
|
|
color = vColor;
|
2017-12-22 18:35:11 +00:00
|
|
|
}
|