SPIRV-Cross/shaders/vulkan/vert/multiview.nocompat.vk.vert
2017-08-15 13:28:16 +02:00

15 lines
217 B
GLSL

#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;
}