SPIRV-Cross/shaders/vulkan/vert/multiview.nocompat.vk.vert

15 lines
217 B
GLSL
Raw Normal View History

2017-08-15 11:28:16 +00:00
#version 310 es
#extension GL_EXT_multiview : require
layout(std140, binding = 0) uniform MVPs
{
mat4 MVP[2];
};
layout(location = 0) in vec4 Position;
void main()
{
gl_Position = MVP[gl_ViewIndex] * Position;
}