ULRE/res/shader/OnlyPosition.vert

22 lines
341 B
GLSL
Raw Normal View History

2019-05-06 12:00:03 +08:00
#version 450 core
layout(location = 0) in vec2 Vertex;
2019-07-17 04:49:49 +08:00
layout(binding = 0) uniform WorldMatrix
2019-05-06 12:00:03 +08:00
{
2019-07-17 04:49:49 +08:00
mat4 ortho;
mat4 projection;
mat4 modelview;
2019-05-06 12:00:03 +08:00
mat4 mvp;
2019-07-17 04:49:49 +08:00
vec4 view_pos;
2019-05-06 12:00:03 +08:00
} world;
layout(location = 0) out vec4 FragmentColor;
void main()
{
FragmentColor=vec4(1.0);
2019-07-17 04:49:49 +08:00
gl_Position=vec4(Vertex,0.0,1.0)*world.ortho;
2019-05-06 12:00:03 +08:00
}