2022-01-18 04:39:23 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(location = 0) in vec3 inPosition;
|
|
|
|
layout(location = 1) in vec2 inTexCoord;
|
2022-01-18 05:03:02 +00:00
|
|
|
layout(location = 2) in vec4 inColor;
|
2022-01-18 04:39:23 +00:00
|
|
|
|
|
|
|
layout(location = 0) out vec2 fragCoord;
|
2022-01-18 05:03:02 +00:00
|
|
|
layout(location = 1) out vec4 color;
|
2022-01-18 04:39:23 +00:00
|
|
|
|
|
|
|
layout(set = 2, binding = 0) uniform UBO
|
|
|
|
{
|
|
|
|
mat4 viewProjection;
|
|
|
|
} ubo;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_Position = ubo.viewProjection * vec4(inPosition, 1.0);
|
|
|
|
fragCoord = inTexCoord;
|
2022-01-18 05:03:02 +00:00
|
|
|
color = inColor;
|
2022-01-18 04:39:23 +00:00
|
|
|
}
|