1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 12:01:51 +00:00
OpenMW/files/shaders/compatibility/multiview_resolve.frag
2023-04-21 09:02:12 +04:00

19 lines
308 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);
}