2022-11-12 17:51:22 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(location = 0) in vec3 inPos;
|
|
|
|
layout(location = 0) out vec3 vPos;
|
|
|
|
|
2024-06-06 05:47:06 +00:00
|
|
|
layout(set = 1, binding = 0) uniform UBO
|
2022-11-12 17:51:22 +00:00
|
|
|
{
|
|
|
|
mat4 ViewProjection;
|
|
|
|
} ubo;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vPos = inPos;
|
|
|
|
gl_Position = ubo.ViewProjection * vec4(inPos, 1.0);
|
|
|
|
}
|