ULRE/example/Vulkan/FlatColor.vert

19 lines
297 B
GLSL
Raw Normal View History

2019-04-15 21:33:00 +08:00
#version 450 core
layout(location = 0) in vec2 Vertex;
layout(location = 1) in vec3 Color;
2019-04-23 22:07:26 +08:00
layout (binding = 0) uniform MVPMatrix
{
mat4 MVP;
} ubo;
layout(location = 0) out vec4 FragmentColor;
void main()
{
FragmentColor=vec4(Color,1.0);
gl_Position=vec4(Vertex,0.0,1.0)*ubo.MVP;
}