2017-01-18 02:10:28 +00:00
|
|
|
#version 310 es
|
|
|
|
|
|
|
|
layout(std140) uniform UBO
|
|
|
|
{
|
|
|
|
layout(column_major) mat4 uMVPR;
|
|
|
|
layout(row_major) mat4 uMVPC;
|
2017-01-21 12:49:32 +00:00
|
|
|
layout(row_major) mat2x4 uMVP;
|
2017-01-18 02:10:28 +00:00
|
|
|
};
|
|
|
|
|
2017-06-21 07:39:08 +00:00
|
|
|
layout(location = 0) in vec4 aVertex;
|
2017-01-18 02:10:28 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2017-01-21 12:49:32 +00:00
|
|
|
vec2 v = aVertex * uMVP;
|
2017-01-18 02:10:28 +00:00
|
|
|
gl_Position = uMVPR * aVertex + uMVPC * aVertex;
|
|
|
|
}
|