1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/files/shaders/compatibility/multiview_resolve.frag

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
308 B
GLSL
Raw Normal View History

2022-06-21 15:55:06 +00:00
#version 120
#extension GL_EXT_texture_array : require
varying vec2 uv;
2023-02-25 19:03:39 +00:00
uniform sampler2DArray lastShader;
2022-06-21 15:55:06 +00:00
void main()
{
2023-04-21 05:02:12 +00:00
int view = 0;
vec3 uvz = vec3(uv.x * 2., uv.y, 0);
if(uvz.x > 1.)
{
uvz.x -= 1.;
uvz.z = 1;
}
2023-02-25 19:03:39 +00:00
gl_FragColor = texture2DArray(lastShader, uvz);
2023-04-21 05:02:12 +00:00
}