1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/files/shaders/compatibility/multiview_resolve.frag
2023-02-25 11:03:39 -08:00

18 lines
281 B
GLSL

#version 120
#extension GL_EXT_texture_array : require
varying vec2 uv;
uniform sampler2DArray lastShader;
void main()
{
int view = 0;
vec3 uvz = vec3(uv.x * 2., uv.y, 0);
if(uvz.x > 1.)
{
uvz.x -= 1.;
uvz.z = 1;
}
gl_FragColor = texture2DArray(lastShader, uvz);
}