2020-11-12 23:13:29 +08:00
|
|
|
#version 330
|
|
|
|
#extension GL_OVR_multiview2 : enable
|
|
|
|
|
|
|
|
layout(num_views = 2) in;
|
|
|
|
|
|
|
|
uniform mat4 osg_ModelViewProjectionMatrix;
|
|
|
|
|
|
|
|
in vec4 osg_Vertex;
|
|
|
|
in vec4 osg_MultiTexCoord0;
|
|
|
|
|
|
|
|
out vec2 texcoord;
|
2020-11-12 20:36:24 +08:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2020-11-12 23:13:29 +08:00
|
|
|
texcoord = osg_MultiTexCoord0.xy;
|
|
|
|
gl_Position = osg_ModelViewProjectionMatrix * osg_Vertex;
|
2020-11-12 20:36:24 +08:00
|
|
|
}
|