qskinny/playground/parrots/shaders/blur-vulkan.vert

22 lines
350 B
GLSL
Raw Normal View History

2023-12-04 11:48:11 +00:00
#version 440
2023-12-07 10:24:47 +00:00
layout( location = 0 ) in vec4 in_vertex;
layout( location = 1 ) in vec2 in_coord;
2023-12-04 11:48:11 +00:00
2023-12-07 10:24:47 +00:00
layout( location = 0 ) out vec2 coord;
2023-12-04 11:48:11 +00:00
2023-12-07 10:24:47 +00:00
layout( std140, binding = 0 ) uniform buf
2023-12-04 11:48:11 +00:00
{
2023-12-07 10:24:47 +00:00
mat4 matrix;
float opacity;
2023-12-04 11:48:11 +00:00
} ubuf;
out gl_PerVertex { vec4 gl_Position; };
void main()
{
2023-12-07 10:24:47 +00:00
coord = in_coord;
gl_Position = ubuf.matrix * in_vertex;
2023-12-04 11:48:11 +00:00
}