mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 21:43:34 +00:00
5a2fe54c04
It can now fill an array texture to a multiview pass, copying to the corresponding layers.
12 lines
266 B
GLSL
12 lines
266 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() {
|
|
return Color * getPixel(ArrayTexture, UV, ViewIndex);
|
|
}
|