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

16 lines
251 B
GLSL

#version 450
layout(location = 0) in vec3 inPos;
layout(location = 0) out vec3 vPos;
layout(set = 2, binding = 0) uniform UBO
{
mat4 ViewProjection;
} ubo;
void main()
{
vPos = inPos;
gl_Position = ubo.ViewProjection * vec4(inPos, 1.0);
}