MoonWorksGraphicsTests/Common/Content/Shaders/Source/Skybox.vert

16 lines
251 B
GLSL
Raw Normal View History

#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
{
mat4 ViewProjection;
} ubo;
void main()
{
vPos = inPos;
gl_Position = ubo.ViewProjection * vec4(inPos, 1.0);
}