1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-12 08:53:35 +00:00
lovr/etc/shaders/stereoblit.frag
2022-08-01 21:26:34 -07:00

14 lines
326 B
GLSL

#version 460
#extension GL_EXT_multiview : require
#extension GL_GOOGLE_include_directive : require
#include "lovr.glsl"
layout(set = 1, binding = 1) uniform texture2DArray ArrayTexture;
vec4 lovrmain() {
vec2 uv = vec2(2 * UV.x, UV.y);
vec3 uvw = vec3(uv, round(uv.x));
return Color * getPixel(ArrayTexture, uvw);
}