mirror of https://github.com/bjornbytes/lovr.git
Fix stereo mirror window;
For some reason this was rendering both layers of a multi-layer texture all squished. I think it was supposed to just render the first layer.
This commit is contained in:
parent
c021fc40ef
commit
5e2b44ad08
|
@ -7,6 +7,5 @@
|
||||||
layout(set = 1, binding = 1) uniform texture2DArray ArrayTexture;
|
layout(set = 1, binding = 1) uniform texture2DArray ArrayTexture;
|
||||||
|
|
||||||
vec4 lovrmain() {
|
vec4 lovrmain() {
|
||||||
vec2 uv = vec2(2 * UV.x, UV.y);
|
return Color * getPixel(ArrayTexture, UV, 0);
|
||||||
return Color * getPixel(ArrayTexture, uv, 0);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue