mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-06 14:23:34 +00:00
8f654ed408
Now there's 2 instead of 3! Behavior is the same, fill goes layer-by-layer onto each view until either the texture or canvas run out of layers.
13 lines
365 B
GLSL
13 lines
365 B
GLSL
#version 460
|
|
#extension GL_EXT_multiview : require
|
|
#extension GL_GOOGLE_include_directive : require
|
|
#extension GL_EXT_samplerless_texture_functions : require
|
|
|
|
#include "lovr.glsl"
|
|
|
|
layout(set = 1, binding = 1) uniform texture2DArray ArrayTexture;
|
|
|
|
vec4 lovrmain() {
|
|
return Color * getPixel(ArrayTexture, UV, min(ViewIndex, textureSize(ArrayTexture, 0).z - 1));
|
|
}
|