1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-06 06:13:36 +00:00
lovr/etc/shaders/fill_stereo.frag

13 lines
302 B
GLSL
Raw Normal View History

2022-08-02 04:26:34 +00:00
#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);
return Color * getPixel(ArrayTexture, uv, round(UV.x));
2022-08-02 04:26:34 +00:00
}