1#version 310 es 2#extension GL_EXT_multiview : require 3 4layout(std140, binding = 0) uniform MVPs 5{ 6 mat4 MVP[2]; 7}; 8 9layout(location = 0) in vec4 Position; 10 11void main() 12{ 13 gl_Position = MVP[gl_ViewIndex] * Position; 14} 15